Exemple #1
0
        public async Task ShowFriends(string id)
        {
            if (id == null)
            {
                id = Context.ConnectionId;
            }
            var friends = _friendManager.GetFriends(id);

            await Clients.Client(id).showFriends(friends);

            try
            {
                Clients.All.usersOnline();
            }
            catch (Exception e)
            {
                var v = e.Message;
            }
        }