+ 7
Identification during websocket handshake.
I want to assign a unique identifier to each html5 websocket client, which will be sent during handshaking process. The Sec_websocket_key is not intended. (The backend script is written in php). How can I do that?
1 Odpowiedź
+ 7
In php there is a function called uniqid() for generating (what else...) a unique id.
Here are a few resources that hopefully would he helpful for your task.
https://www.php.net/manual/en/function.uniqid.php
https://stackoverflow.com/questions/23101377/websockets-and-identifying-unique-peersphp
https://stackoverflow.com/questions/53310106/how-to-assign-a-unique-identifier-to-a-websocket