private void OnError()
 {
     // Please preserve this log message for diagnostic purpose
     Debug.LogError("Connection Failed, reconnect in 5 seconds");
     _listener.Dispose();
     _listener = null;
 }
        private void TryConnect()
        {
            Debug.Log("Attempting to setup connection");

            _listener = WebSocketListener.Platform;

            _listener.NewMessage += this.OnMessage;
            _listener.Connect(new Uri(_sceneConfiguration.WebSocketURL), this.OnConnection, this.OnError);
        }