From 5ca90f131a70ecd7a9d1e36d55aa4c65fd184eb7 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Fri, 19 Mar 2021 23:35:11 +0530 Subject: [PATCH] idk --- src/ws/handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ws/handler.js b/src/ws/handler.js index 17684f9..6d7d97e 100644 --- a/src/ws/handler.js +++ b/src/ws/handler.js @@ -68,8 +68,8 @@ const handleMsg = async (msg, id) => { } } -const fanoutMsg = async (channel, data) => { - Object.keys(connections).forEach((k) => { +const fanoutMsg = (channel, data) => { + Object.keys(connections).forEach( async (k) => { if (connections[k].events.indexOf(`${channel}:read`) !== -1) { const d = { event: `${channel}:read`,