public void Destroy()
        {
            if (_connection == null)
            {
                return;
            }
            if (_connection.Context == null)
            {
                return;
            }

            var url = _connection.Context.Url;

            _connection.Close();

            UnityEngine.Debug.Log(string.Format("Disconnected from {0}", url));

            _stopwatch = null;
        }
        public void Destroy()
        {
            if (_nativePointerToSelf.IsAllocated)
            {
                _nativePointerToSelf.Free();
            }
            if (_connection == null)
            {
                return;
            }
            if (_connection.Context == null)
            {
                return;
            }
            var url = _connection.Context.Url;

            _connection.Close();

            UnityEngine.Debug.Log(string.Format("Disconnected from {0}", url));

            _stopwatch = null;
        }