AcediaDocumentation

raknet.receive

Passes packet bytes through the client receive path.

Returns whether the receive path produced a nonzero result. Requires a cached client and an installed receive hook.

raknet.receive(data: string | buffer): boolean

Parameters

ParameterTypeDescription
datastring | bufferNon-empty packet bytes, at most 4 KiB. A buffer is read through buffer.tostring.

Errors: Empty or oversized packets and an unavailable receive path raise errors.

Aliases: transport.receive.

On this page