attempt 2

main v1.3.2
Ayush Mukherjee 4 years ago
parent a5ead194e4
commit 1d9ec6bd4f

@ -36,12 +36,14 @@ const recvUpdate = async (channel, data) => {
} }
const sendInitial = async (id) => { const sendInitial = async (id) => {
const c = connections[id] if (id != null || id != '') {
const stream = await crud['streams'].getById(c.streamid) const c = connections[id]
c.connection.send(JSON.stringify({ const stream = await crud['streams'].getById(c.streamid)
event: 'streams:read', c.connection.send(JSON.stringify({
data: stream, event: 'streams:read',
})) data: stream,
}))
}
} }
module.exports = { module.exports = {

Loading…
Cancel
Save