Skip to content

Class PacketEncoder

🏭 Constructors

constructor

ts
new PacketEncoder(client: PacketRegistry): PacketEncoder

Parameters

  • client: PacketRegistry

Return Type

  • PacketEncoder

Defined in: packages/client/channel.ts:293

🏷️ Properties

client private

ts
client: PacketRegistry

Defined in: packages/client/channel.ts:293

🔧 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:299

writePacketId protected abstract

ts
writePacketId(bb: ByteBuffer, id: number): void

Parameters

  • bb: ByteBuffer
  • id: number

Return Type

  • void

Defined in: packages/client/channel.ts:297