switching socket.io to ws