Switch from ws to socket.io