Example #1
0
        public void FriendRequestNotification(int requestId)
        {
            var user = _common.GetConnectionIdForFriendRequest(requestId);

            if (user != null)
            {
                var ids = new List <string>();
                ids.Add(user.ConnectionId);
                Clients.Clients(ids).notifyFriendRequest(user.UserName + " wants to connect with you");
            }
        }