Repeater actor

We have to send notifications about new comments to all connected clients. To do this, we have to keep the list of all connected clients to send a notification to them. We could update the State instance on every connection to add every new client to it, but instead, we will create a more elegant solution with a router that resends messages to multiple subscribers. Subscribers or listeners, in this case, will be actors that handle incoming WebSocket connections.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.27.72