Example #1
0
        public override async Task OnConnectedAsync()
        {
            var channelId = Context.User.FindFirst("ChannelId").Value;

            _hostConnectionRepository.SetConnection(channelId, Context.ConnectionId);
            await _userHubContext.SendHostConnected(channelId);
        }