attempt 3

main v1.3.3
Ayush Mukherjee 4 years ago
parent 1d9ec6bd4f
commit f2445d666d

@ -36,13 +36,15 @@ const recvUpdate = async (channel, data) => {
} }
const sendInitial = async (id) => { const sendInitial = async (id) => {
if (id != null || id != '') { try {
const c = connections[id] const c = connections[id]
const stream = await crud['streams'].getById(c.streamid) const stream = await crud['streams'].getById(c.streamid)
c.connection.send(JSON.stringify({ c.connection.send(JSON.stringify({
event: 'streams:read', event: 'streams:read',
data: stream, data: stream,
})) }))
} catch (e) {
console.warn(e)
} }
} }

Loading…
Cancel
Save