Beispiel #1
0
        public override Task OnConnectedAsync()
        {
            var ip = GetRemoteIpAddress();

            _videoService.AddConnetionId(ip, Context.ConnectionId);
            _videoService.UpdateOnlineStatus(ip, true);

            OnConnectionChanged(ConnectedEvent, ip);

            return(base.OnConnectedAsync());
        }