Skip to content
English

MqttCodec

Defined in: src/io/broker/MqttCodec.ts:56

Payload codec. T types the inbound entity (what decode yields); encode deliberately takes unknown so a single codec instance can serialise arbitrary outbound entity types passed to publish.

T = unknown

readonly name: string

Defined in: src/io/broker/MqttCodec.ts:58

Stable identifier — ‘json’ | custom. Informational (logs).

decode(bytes): T

Defined in: src/io/broker/MqttCodec.ts:60

Uint8Array

T


encode(value): Uint8Array

Defined in: src/io/broker/MqttCodec.ts:59

unknown

Uint8Array