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

    Function encodeUtf8

    • Encodes a string to UTF-8 bytes.

      Does not validate MQTT restrictions; use isValidMqttString first if validation is needed.

      Parameters

      • str: string

        The string to encode

      Returns Uint8Array

      UTF-8 encoded bytes