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

    Function isValidMqttString

    • Validates that a string is valid for MQTT UTF-8 encoding.

      MQTT places restrictions on UTF-8 strings beyond standard UTF-8:

      • No null characters (U+0000)
      • No control characters U+0001 to U+001F
      • No control characters U+007F to U+009F

      Parameters

      • str: string

        The string to validate

      Returns boolean

      true if the string is valid for MQTT

      MQTT 5.0 ยง1.5.4