WebSocket:
is there a way to check the ids of all rooms or do server.publishToAll()
in Bun?
#23012
Unanswered
touhidurrr
asked this question in
Q&A
Replies: 1 comment
-
ws.subscribe('all');
server.publish('all', msg); |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a usecase where I need to publish to all connected clients, all rooms. But I will not have the ids of these rooms, i need to check the currently open rooms, run some filter on room id and then publish to the room. or maybe a
publishToAll()
would do also.anyways, how do I solve this with Bun websocket?
Beta Was this translation helpful? Give feedback.
All reactions