From 496a0b9fff5b9b1a2d278cf5d1d0ca2ed01eeb27 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Fri, 19 Mar 2021 15:24:51 +0530 Subject: [PATCH] console log incoming sub --- src/ws/handler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ws/handler.js b/src/ws/handler.js index 47aa53a..d1ee0fa 100644 --- a/src/ws/handler.js +++ b/src/ws/handler.js @@ -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 = {