@qualithm/mqtt-wire - v0.1.5
    Preparing search index...

    Type Alias PublishPacket

    PUBLISH packet - Publish message.

    MQTT 5.0 §3.3

    type PublishPacket = {
        dup: boolean;
        packetId?: number;
        payload: Uint8Array;
        properties?: PublishProperties;
        qos: QoS;
        retain: boolean;
        topic: string;
        type: typeof PUBLISH;
    }
    Index

    Properties

    dup: boolean

    Duplicate delivery flag

    packetId?: number

    Packet identifier (QoS > 0 only)

    payload: Uint8Array

    Message payload

    properties?: PublishProperties

    PUBLISH properties (5.0)

    qos: QoS

    QoS level

    retain: boolean

    Retain flag

    topic: string

    Topic name

    type: typeof PUBLISH

    Packet type discriminator.