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

    Function validateMqttUtf8

    • Validates UTF-8 bytes for MQTT compliance.

      Checks that the bytes:

      1. Are valid UTF-8
      2. Don't contain MQTT-prohibited characters

      Parameters

      • bytes: Uint8Array

        The UTF-8 bytes to validate

      Returns DecodeResult<string>

      DecodeResult with the decoded string or error

      MQTT 5.0 ยง1.5.4