Ayush Mukherjee 4 years ago
parent 5ca90f131a
commit 2d9a34f8bc

@ -76,13 +76,14 @@ const fanoutMsg = (channel, data) => {
data, data,
} }
connections[k].connection.send(JSON.stringify(d)) connections[k].connection.send(JSON.stringify(d))
} else if (connections[k].events.indexOf('streams:full') !== -1) { if (connections[k].events.indexOf('streams:full') !== -1) {
const m = await crud['streams'].getAllPop() const m = await crud['streams'].getAllPop()
const d = { const d = {
event: 'streams:full', event: 'streams:full',
data: m, data: m,
}
connections[k].connection.send(JSON.stringify(d))
} }
connections[k].connection.send(JSON.stringify(d))
} }
}) })
} }

Loading…
Cancel
Save