Aliases

None.

Arguments

string | buffer | {number}
required
A nonempty valid protocol payload as a string, buffer, or 1-based numeric byte array.
number
default:"2"
The packet priority, from 0 to 3.
number
default:"3"
The packet reliability, from 0 to 7.
number
default:"0"
The ordering channel, from 0 to 31.

Returns

This function returns no values. Requires a hooked peer and send function. Priority 0..3; reliability 0..7; channel 0..31. Byte-array entries must be integers 0..255. Existing callbacks run on this path too and can block it. No receipt/status is returned; arbitrary text is not a valid game protocol packet. Related types: RakNet types & behavior.

Example