Skip to main content
Version: 5.7.0

Send

Send a packet to peer(s).

Method Parameters

ParameterDescription
dataByte array for the data to send
sizeSize of data in bytes
toNetIdThe net id to send to, TO_ALL_PLAYERS to relay to all
reliableSend this reliably or not
orderedReceived this ordered or not
channelOne of: (CHANNEL_HIGH_PRIORITY_1, CHANNEL_HIGH_PRIORITY_2, CHANNEL_NORMAL_PRIORITY, CHANNEL_LOW_PRIORITY)

Usage

http://localhost:3000
RSDataCallback rsDataCallback = (response) =>
{
Debug.Log(string.Format("Success | {0}", response));
};

_bc.RelayService.Send(data, size, toNetId, reliable, ordered, channel);