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