Ayush Mukherjee 4 years ago
parent 2faced9d43
commit 5ca90f131a

@ -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`,

Loading…
Cancel
Save