How to broadcast to connected clients from outside the ws app? #476
Unanswered
gheoneaemil
asked this question in
Q&A
Replies: 1 comment 1 reply
-
you should use Publish to broadcast, better performance and you dont need to add/delete from Set open:ws=>ws.subscribe('all')
app.publish('all',message) |
Beta Was this translation helpful? Give feedback.
1 reply
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'm trying to broadcast messages to all clients connected to my ws, from outside.
Below is an example of what I'm trying to do :
Any idea what I'm missing / doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions