Yuari
Documentation
Docs/RakNet/raknet.Send

raknet.Send

Sends a bit stream.

Syntax

raknet.Send(bitstream: any, priority?: number, reliability?: number, channel?: number) -> nil

Parameters

ParameterTypeDescription
bitstreamanyThe bitstream value used by the call.
priority?numberThe priority value used by the call.
reliability?numberThe reliability value used by the call.
channel?numberThe channel value used by the call.

Returns

TypeDescription
nilThis function does not return a value.

Description

raknet.Send is part of the RakNet library. RakNet helpers expose the client's network stream: packet hooks, capture controls and bitstream serialization.

The operation is performed immediately using the arguments supplied at the call site.

Example

local stream = raknet.new()
stream:WriteU8(1)
raknet.Send(stream)

Notes

  • Packet hooks run on the network path and should return quickly.