Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to send messages to specific clients? #5
changed the title from
how can i set messages to some clients not all connected clients？
how can i sent messages to some clients not all connected clients？
Aug 28, 2017
The core aspect of Server Sent Events is persistent connection. In load balancing scenario this connection is being made to a specific instance behind the load balancer and only this instance can send messages to client represented by that connection. If you want to send an update generated in specific instance to clients connected to all instances you need a way for communicating that update across all the instances (one option can be Pub/Sub functionality provided by Redis, but there are others).