Can hocuspocus emit custom events? #815
Unanswered
huanghantao
asked this question in
Q&A
Replies: 1 comment
-
Yes! We can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can hocuspocus emit custom events? Like socketio. Currently, I have a requirement where user needs to set permissions for a document using an event called
SET_FILE_PERMISSION
, and then broadcast the document's permission list to other users in the room. Can I reuse the y-websocket connection for this or do I have to create a separate websocket connection to handle events other than document collaboration? Is y-websocket only used for collaboration purposes?Beta Was this translation helpful? Give feedback.
All reactions