Exemplo n.º 1
0
        public async Task Logout(string connectionId)
        {
            try
            {
                var user = GetUserByConnectionId(connectionId);
                if (user != null)
                {
                    _matchService.Exit(user.Id);
                    _roomService.Exit(user.Id);
                    _users.Remove(user);
                }
            }
            catch (Exception)
            {
            }

            await Task.CompletedTask;
        }