Class PacketDecoder
🏭 Constructors
constructor
ts
new PacketDecoder(client: PacketRegistry): PacketDecoder
Parameters
- client:
PacketRegistry
Return Type
PacketDecoder
Defined in: packages/client/channel.ts:244
🏷️ Properties
client
ts
client: PacketRegistry
Defined in: packages/client/channel.ts:244
🔧 Methods
_transform
ts
_transform(chunk: Buffer, encoding: string, callback: TransformCallback): void
Parameters
- chunk:
Buffer
- encoding:
string
- callback:
TransformCallback
Return Type
void
Defined in: packages/client/channel.ts:250
readPacketId
ts
readPacketId(message: ByteBuffer): number
Parameters
- message:
ByteBuffer
Return Type
number
Defined in: packages/client/channel.ts:248