pass root url to socket.io