connect to socket.io