connect to socket.io server