Is there any way to find a socket's namespace or client URL when it connects to the server?
Client:
var socket = io.connect('/ns1');
Server:
io.sockets.on('connection', function(socket){
//socket.something.namespace?
});
I've looked through the object structure of the socket extensively but any reference to namespaces just has "name" : "/" or lists all the server's namespaces and not the single socket's namespace.
Same thing with URL as well.. I've only been able to find it in headers referrer but that might not be as robust as a true URL reference.