Exemple #1
0
        public override Task OnDisconnected(bool stopCalled)
        {
            string key          = Context.QueryString["Key"];
            string connectionId = Context.ConnectionId;

            if (string.IsNullOrEmpty(key))
            {
                return(base.OnDisconnected(stopCalled));
            }

            ServerConnectionMap.Remove(key, connectionId);

            return(base.OnDisconnected(stopCalled));
        }