Answer the question
In order to leave comments, you need to log in
WebSocket identification of each connection, how?
How to store connections and send msg to the right client is clear.
But how to understand that this msg came from Vasya and not from Petya?
Sample message { 'msg' : 'Hi!' }
Answer the question
In order to leave comments, you need to log in
Add the message initiator object to the mailing list (i.e. the user who created this message)
{msg : 'msg', fromUser : ?}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question