added explicit endpoint option to socket.io constructor