Switch to socket.io