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

    Variable PacketTypeConst

    PacketType: {
        AUTH: 15;
        CONNACK: 2;
        CONNECT: 1;
        DISCONNECT: 14;
        PINGREQ: 12;
        PINGRESP: 13;
        PUBACK: 4;
        PUBCOMP: 7;
        PUBLISH: 3;
        PUBREC: 5;
        PUBREL: 6;
        SUBACK: 9;
        SUBSCRIBE: 8;
        UNSUBACK: 11;
        UNSUBSCRIBE: 10;
    } = ...

    MQTT control packet types.

    The packet type is encoded in the upper 4 bits of the fixed header's first byte.

    Type Declaration

    • ReadonlyAUTH: 15

      Authentication exchange (5.0 only)

    • ReadonlyCONNACK: 2

      Connect acknowledgement

    • ReadonlyCONNECT: 1

      Client request to connect to server

    • ReadonlyDISCONNECT: 14

      Disconnect notification

    • ReadonlyPINGREQ: 12

      PING request

    • ReadonlyPINGRESP: 13

      PING response

    • ReadonlyPUBACK: 4

      Publish acknowledgement (QoS 1)

    • ReadonlyPUBCOMP: 7

      Publish complete (QoS 2 delivery part 3)

    • ReadonlyPUBLISH: 3

      Publish message

    • ReadonlyPUBREC: 5

      Publish received (QoS 2 delivery part 1)

    • ReadonlyPUBREL: 6

      Publish release (QoS 2 delivery part 2)

    • ReadonlySUBACK: 9

      Subscribe acknowledgement

    • ReadonlySUBSCRIBE: 8

      Subscribe request

    • ReadonlyUNSUBACK: 11

      Unsubscribe acknowledgement

    • ReadonlyUNSUBSCRIBE: 10

      Unsubscribe request

    MQTT 5.0 §2.1.2