public void Connect() { _queueEvents = new QueueEvents(); _webSocket = new WebSocket($"ws://{_host}:{_serverPort}/Javity"); _webSocket.OnMessage += OnMessage; _webSocket.OnClose += OnClose; _webSocket.Connect(); }
protected override IEnumerator RoutineUpdate() { Schedule(_event); while (_current == _event || QueueEvents.Contains(_event)) { yield return(null); } }