Connect to socket.io server