In my app.js (server) I need to know from where (URL) the request came.
Currently, I\'m passing the URL as parameter from the client:
socket.emit(\'reque
For the entire URL you could use socket.handshake.headers.referer
io.on('connect', (socket) => { console.log(socket.handshake.headers.referer); });