Streamer events from Authority on the server are now only broadcast to the interested clients. Previously they were broadcasted to all clients, left over from the PoC.
added a new streamer-util/both/streamer-util with a generateEventName({ name, params }) method that generates event names with params.
see #28
Streamer events from Authority on the server are now only broadcast to the interested clients. Previously they were broadcasted to all clients, left over from the PoC.
streamer-util/both/streamer-util
with agenerateEventName({ name, params })
method that generates event names with params.generateEventName({ name: 'start', params: { id: 123, type: 'foo' }})
=>'start-id:123-type:foo'
streamer-util/both/event-names
constant to contain all streamer event namescollab-editor
on client andauthority
on the server to usegenerateEventName()
to make event names unique per docId by addingdocId
param@funkyeah @archonic @ellery44