-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce broadcast API for event sharing #628
Comments
Is this feature replacing the current watch API (pub/sub model)? |
Thanks for your interest. |
SDKs:
|
I'll work on the js sdk |
It would be beneficial to allow broadcasts to emit events via REST API. For certain events (such as Refresh Notification), it is more natural for the server to emit the events rather than the client. Reference: https://liveblocks.io/docs/api-reference/rest-api-endpoints#post-broadcast-event |
Could I give it a try for JS-SDK? |
@gwbaik9717 Sure. If you have any questions, feel free to ask. |
What would you like to be added:
Yorkie presently relies on the Publish-Subscribe model for sharing document and presence events (refer to: pub-sub.md).
However, this lacks the capability to extend its scope to encompass additional event types, notably notifications for end users concerning new document updates or comments.
To address this limitation, the introduction of a "broadcast" feature is recommended.
This feature would enable users to define and share a wider range of general events beyond the existing document and presence events.
It's also related to #442, which extracts
Room
fromDocument
and movesPresence
fromClient
toRoom
.Why is this needed:
Provide a more comprehensive event-sharing mechanism that satisfies various use cases.
The text was updated successfully, but these errors were encountered: