Пример #1
0
 public static async void SendToAll(DashboardSocketDistributionModel data)
 => (from s in Sessions where s.Value.IsLive select s).ToList().ForEach(s => Send(s.Value, data));
Пример #2
0
 public static async void Send(DashboardSessionSocket socket, DashboardSocketDistributionModel data)
 => await SendStringAsync(socket.WebSocket, JsonConvert.SerializeObject(data));
Пример #3
0
 public static async void Send(string uid, DashboardSocketDistributionModel data)
 => await SendStringAsync(Get(uid).WebSocket, JsonConvert.SerializeObject(data));
Пример #4
0
 public void Send(DashboardSocketDistributionModel data)
 => DashboardSocketsServer.Send(this, data);