Class PacketDecoder
🏭 Constructors
constructor
ts
new PacketDecoder(client: PacketRegistry): PacketDecoder
Parameters
- client:
PacketRegistry
Return Type
PacketDecoder
Defined in: packages/client/channel.ts:255
🏷️ Properties
client private
ts
client: PacketRegistry
Defined in: packages/client/channel.ts:255
🔧 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:261
readPacketId abstract
ts
readPacketId(message: ByteBuffer): number
Parameters
- message:
ByteBuffer
Return Type
number
Defined in: packages/client/channel.ts:259