public void SendMessage(NetworkingMessages.Messages.NetworkMessage msg, NetDeliveryMethod method, int channel) { if (SocketClient == null) { return; } SocketClient.SendMessage(NetworkingMessages.MessageFactory.PackMessage(SocketClient.CreateMessage(), msg), method, channel); }
public void SendMessage(NetworkingMessages.Messages.NetworkMessage msg) { SendMessage(msg, NetDeliveryMethod.ReliableOrdered, 1); }