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): booleanParameters
| Parameter | Type | Description |
|---|---|---|
data | string | buffer | Non-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.
