K
K
komarevtsev2017-04-10 21:40:35
JavaScript
komarevtsev, 2017-04-10 21:40:35

Issue with socket.io events?

I noticed that all events generated by the server come to the client, even if we do not subscribe to them on the client. Someone faced maybe?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2017-04-10
@komarevtsev

If you want to isolate delivery to individual users, you need to use rooms or use a transfer directly to the specified socket.
https://socket.io/docs/rooms-and-namespaces/#

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question