mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-31 17:32:48 -05:00
Fix missing broadcast of CRDT updates to clients
This commit is contained in:
@@ -97,6 +97,12 @@ function initApp({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stateDoc.on('update', (update) => {
|
||||||
|
for (const ws of sockets) {
|
||||||
|
ws.send(update)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
return { app, broadcastState }
|
return { app, broadcastState }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user