Identification of the websocket connection. How?
There is a simple chat written in php socket'Oh
The site has authorization and user its ID.
How to create the conditions in sockets, so that the user receives only messages addressed to him?
asked April 3rd 20 at 17:16
When on the server doing send() to specify the context id of the recipient, then on the front of the check
if (message.user_id === user_id)
Find more questions by tags PHPWebSocket