예제 #1
0
 public override void SendMessage(MessagePacket message)
 {
     foreach (var worker in connections)
     {
         OnMessageSent(worker.Key, message);
         worker.Value.Send(message.SerializeForSocket(serializer));
     }
 }
예제 #2
0
 public override void SendMessage(MessagePacket message)
 {
     socket.Send(message.SerializeForSocket(serializer));
     OnMessageSent("master", message);
 }