S
S
Stepan Turchenko2020-10-18 09:44:46
Socket.io
Stepan Turchenko, 2020-10-18 09:44:46

How to isolate chat on socket io?

Imagine - we have an application with a large number of chats, private messages, group chats (+ there is authorization in the application).
We need to track the message input and send event and display it all on the receiving side of the client.
How to organize data exchange between clients from the server side in order to ensure the isolation of messages within a certain group of people so that the message does not get into someone else's chat if someone connects to the endpoint (taking into account authorization and tokens)? Need advice on organizing this kind of application from the server side (preferably using a node as an example).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bqio, 2020-10-18
@StepanTur

We read the documentation, right?
https://socket.io/docs/rooms/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question