fixed connection

fixed connection for socket.io 1.x