@ngrok/ngrok
    Preparing search index...

    Class LabeledListenerBuilder

    r" A labeled ngrok listener. r" r"

    Index

    Constructors

    Methods

    • Set the L7 application portocol for this listener, i.e. "http1" or "http2" (defaults "http1")

      Parameters

      • appProtocol: string

      Returns this

    • Add a label, value pair for this listener. See Using Labels in the ngrok docs for additional details.

      Parameters

      • label: string
      • value: string

      Returns this

    • Begin listening for new connections on this listener.

      Parameters

      • Optionalbind: null | boolean

      Returns Promise<Listener>

    • Begin listening for new connections on this listener and forwarding them to the given url. This method will also set the forwardsTo value.

      Parameters

      • toUrl: string

      Returns Promise<Listener>

    • Begin listening for new connections on this listener and forwarding them to the given server. This method will also set the forwardsTo value.

      Parameters

      • server: any

      Returns Promise<Listener>

    • Listener-specific opaque metadata. Viewable via the API.

      Parameters

      • metadata: string

      Returns this

    • Whether to disable certificate verification for this listener.

      Parameters

      • verifyUpstreamTls: boolean

      Returns this