Beispiel #1
0
        public override async Task OnDisconnectedAsync(Exception exception)
        {
            var currentUser = userTracker.GetUser(Context.ConnectionId);

            userTracker.RemoveUser(currentUser);

            await OnUsersLeft(currentUser);

            await base.OnDisconnectedAsync(exception);
        }