bothy-sdk
    Preparing search index...

    Function gatewayHtu

    • Returns the htu of a gateway proof: the HTTPS form of the gateway URL (GatewayIdentify.dpop, 04 6.3 step 3), also when the server speaks clear text behind a TLS terminator or on loopback; a default port (80 of ws, 443 of wss) is dropped, query and fragment are removed (docs/DECISIONS.md D-M2-29-3).

      Parameters

      • gatewayUrl: string

        The WebSocket URL of the gateway.

      Returns string

      The htu.

      gatewayHtu("ws://127.0.0.1:8099/api/v1/gateway"); // "https://127.0.0.1:8099/api/v1/gateway"