@ngrok/ngrok
    Preparing search index...

    Class TcpListenerBuilder

    r" An ngrok listener backing a TCP endpoint. r" r"

    Index

    Constructors

    Methods

    • Restriction placed on the origin of incoming connections to the edge to only allow these CIDR ranges. Call multiple times to add additional CIDR ranges. See IP restrictions in the ngrok docs for additional details.

      Parameters

      • cidr: string

      Returns this

    • Restriction placed on the origin of incoming connections to the edge to deny these CIDR ranges. Call multiple times to add additional CIDR ranges. See IP restrictions in the ngrok docs for additional details.

      Parameters

      • cidr: string

      Returns this

    • Listener backend metadata. Viewable via the dashboard and API, but has no bearing on listener behavior.

      To automatically forward connections, you can use listenAndForward, or listenAndServe on the Listener Builder. These methods will also set this forwardsTo value.

      Parameters

      • forwardsTo: 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

    • Parameters

      • policy: string

      Returns this

    • Enable endpoint pooling for this listener.

      Parameters

      • poolingEnabled: boolean

      Returns this

    • The version of PROXY protocol to use with this listener "1", "2", or "" if not using.

      Parameters

      • proxyProto: string

      Returns this

    • The TCP address to request for this edge. These addresses can be reserved in the ngrok dashboard to use across sessions. For example: remote_addr("2.tcp.ngrok.io:21746")

      Parameters

      • remoteAddr: string

      Returns this

    • Parameters

      • trafficPolicy: string

      Returns this

    • Whether to disable certificate verification for this listener.

      Parameters

      • verifyUpstreamTls: boolean

      Returns this