console log incoming sub

main
Ayush Mukherjee 4 years ago
parent 8d5bc05cf7
commit 496a0b9fff

@ -27,6 +27,7 @@ const handleMsg = async (msg, id) => {
try {
const d = JSON.parse(msg)
if (d.hasOwnProperty('subscribe') && channelEvents.indexOf(d.subscribe) !== -1) {
console.log('received sub for ', d.subscribe)
const channel = d.subscribe.split(':')[0]
connections[id].events.push(d.subscribe)
const dm = {

Loading…
Cancel
Save