WebSocketListener icon indicating copy to clipboard operation
WebSocketListener copied to clipboard

How can i do an Broadcast Server instead an Echo Server?

Open mok-liee opened this issue 9 years ago • 1 comments

Hi, is it possible to make a Method to send a Broadcast Message to all connected Clients?

Greetings mok

mok-liee avatar Apr 18 '16 18:04 mok-liee

Yes, you will need to implement your own presence control. If you are planning to run your application in only one server you can have a concurrent collection where you add clients on connection and remove them on disconnection. If you plan to use multiple servers, probably is better idea to use a service bus like RabbitMQ.

vtortola avatar Apr 19 '16 09:04 vtortola