• Resolves an MQTT endpoint to a WebSocket MQTT URL (wss://host/mqtt). Strips any existing protocol or /mqtt path from the input and returns a normalized URL.

    Parameters

    Returns string

    Normalized URL "wss://{host}/mqtt" for use with MQTT over WebSocket.

    Error if endpoint is empty.