Answer the question
In order to leave comments, you need to log in
How to implement sending a response to a specific client?
Let's take a nodejs server with complex work logic. For example, a multiplayer turn-based game: tic-tac-toe or checkers/poker.
An event has occurred and I need to send information about the event to a specific client or group of clients. How are things like this done?
Answer the question
In order to leave comments, you need to log in
websockets, in the context of node.js I recommend socket.io. Lots of examples.
Socketstream pub/sub I recommend to look at the implementation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question