K
K
Kroid2014-02-15 15:16:05
Node.js
Kroid, 2014-02-15 15:16:05

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

2 answer(s)
S
Sergey, 2014-02-15
Protko @Fesor

websockets, in the context of node.js I recommend socket.io. Lots of examples.

K
Kirill Chernyshov, 2014-02-15
@delaguardo

Socketstream pub/sub I recommend to look at the implementation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question