Create WebSocketBroadcaster
2. During web socket handshake, send org.mashupbots.socko.processors.WebSocketBroadcasterRegistration message
to the actor created in step #1.
3. To broadcast, send org.mashupbots.socko.processors.WebSocketBroadcastText or
org.mashupbots.socko.processors.WebSocketBroadcastBinary to the actor created in step #1.
There is no need to de-register a web socket upon disconnection. Netty does this for us automatically.
Broadcasts a message to registered web socket connections.
Original idea from Jan Machacek
Usage:
There is no need to de-register a web socket upon disconnection. Netty does this for us automatically.
For more information, see the example
ChatApp.