private void NotifyAllClients(SocketData server)
 {
     foreach (var client in _socketRepository.GetAllClients())
     {
         _notifier.SendServerAvailable(client, server.Offer);
         client.Notified = true;
     }
 }
        public NewICEAvailableResponse Handle(NewICEAvailableRequest request)
        {
            var clients = _socketRepository.GetAllClients();

            _iceRepository.AddEntry(request.ICEData);
            var iceNotification = new NewICEAvailableNotification(request.ICEData);

            foreach (var client in clients)
            {
                _socketNotifier.SendMessageAsync(client.Socket, iceNotification);
            }

            return(new NewICEAvailableResponse(true));
        }
Exemple #3
0
 public virtual IActionResult GetClientsCount()
 {
     return(Ok(_socketRepository.GetAllClients().Count()));
 }