I have a simple node.js web server and I am using socket.io.
Users can perform simple tasks on a server, which is a single-page application running on / . If the user has an existing state on the server, the user ID can be added to the URL, for example. /{my-id} .
I need to extract id from url when establishing socket.io connection. Is it possible to get the URL for the client page from which the socket is created; connection request referrer?
source share