replacing socketio with ws