sendToClient
Summary
Send a packet to a single client via the unreliable data channel. The packet will be framed with the server’s configured magic terminator bytes before being sent.Signature
Parameters
clientId
Type:number
Numeric client identifier returned by listen() events
data
Type:Uint8Array
Raw packet bytes (Uint8Array) to send
Returns
Type:void
Send a packet to a single client via the unreliable data channel. The packet will be framed with the server’s configured magic terminator bytes before being sent.