/// <summary>
 /// Broadcasts <paramref name="informer"/> as message in <paramref name="server"/>.
 /// </summary>
 /// <param name="informer"></param>
 /// <param name="server"></param>
 public static void Send(this BaseInformer informer, WsServer server)
 {
     server.Broadcast(informer.ToMessage());
 }
Example #2
0
 public bool Broadcast(string text)
 {
     return(_server?.Broadcast(text) ?? false);
 }