/// <summary> /// Sends the given raw, serialised primitive to the network. /// </summary> /// <param name="key"> /// The <see cref="string"/> key which identifies the raw data <see cref="PacketReceivedHandler{P}"/> to use for the data. /// </param> /// <param name="data">The serialised raw primitive, as a <see cref="byte"/> array.</param> public void SendRawData(string key, byte[] data) { if (data == null) { logger.Log("Can't send a null reference data byte array", new ArgumentException(), GlobalData.Enums.LogLevel.Information); return; } Send(new RawData(key, data)); }