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