Replace ws on server with socket.io