Class TcpListenerBuilder

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

Hierarchy

  • TcpListenerBuilder

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 TcpListenerBuilder

  • Begin listening for new connections on this listener.

    Parameters

    • Optional bind: 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>

Generated using TypeDoc