private static void Send(TransportHandler transportHandler, long?connectionId, ushort msgType, INetSerializable message) { if (!connectionId.HasValue) { transportHandler.ClientSendPacket(SendOptions.ReliableOrdered, msgType, message.Serialize); } else { transportHandler.ServerSendPacket(connectionId.Value, SendOptions.ReliableOrdered, msgType, message.Serialize); } }