Class PacketEncoder
🏭 Constructors
constructor
ts
new PacketEncoder(client: PacketRegistry): PacketEncoder
Parameters
- client:
PacketRegistry
Return Type
PacketEncoder
Defined in: packages/client/channel.ts:282
🏷️ Properties
client
ts
client: PacketRegistry
Defined in: packages/client/channel.ts:282
🔧 Methods
_transform
ts
_transform(message: any, encoding: string, callback: TransformCallback): void
Parameters
- message:
any
- encoding:
string
- callback:
TransformCallback
Return Type
void
Defined in: packages/client/channel.ts:288
writePacketId
ts
writePacketId(bb: ByteBuffer, id: number): void
Parameters
- bb:
ByteBuffer
- id:
number
Return Type
void
Defined in: packages/client/channel.ts:286