- Notifications
You must be signed in to change notification settings - Fork611
How to broadcast to connected clients from outside the ws app?#476
-
I'm trying to broadcast messages to all clients connected to my ws, from outside.
Any idea what I'm missing / doing wrong? |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 1 reply
-
you should usePublish to broadcast, better performance and you dont need to add/delete from Set open:ws=>ws.subscribe('all')app.publish('all',message) |
BetaWas this translation helpful?Give feedback.
All reactions
👍 3
-
Thanks, it's the solution |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Link is down. Here's the updated one which has example. |
BetaWas this translation helpful?Give feedback.