Skip to content

five-on-it / packages/protocol/src/codec / encodeInputBatch

Function: encodeInputBatch() ​

encodeInputBatch(message): Uint8Array

Defined in: packages/protocol/src/codec.ts:233

Encodes a frame of inputs: the ack, the newest input's number and the inputs, newest first (at most 255; none for an ack alone).

Parameters ​

message ​

Omit<InputBatchMessage, "kind">

Returns ​

Uint8Array