Exemple #1
0
        ///<summary>
        ///Occurs immediately when a user is connected
        /// </summary>
        public override async Task OnConnectedAsync()
        {
            await chatConnectionService.AddConnectionId(Context.ConnectionId);

            await Clients.All.SendAsync("UserConnected", String.Join(",", await chatConnectionService.GetConnectionIdList()));

            await base.OnConnectedAsync();
        }