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