@ngrok/ngrok
    Preparing search index...

    Class Listener

    An ngrok listener.

    Index

    Constructors

    Methods

    • Close the listener.

      This is an RPC call that must be .awaited. It is equivalent to calling Session::close_listener with this listener's ID.

      Returns Promise<void>

    • Forward incoming listener connections. This can be either a TCP address or a file socket path. For file socket paths on Linux/Darwin, addr can be a unix domain socket path, e.g. "/tmp/ngrok.sock" On Windows, addr can be a named pipe, e.e. "\\.\pipe\an_ngrok_pipe

      Parameters

      • addr: string

      Returns Promise<void>

    • Returns a listener's unique ID.

      Returns string

    • Wait for the forwarding task to exit.

      Returns Promise<void>

    • The labels this listener was started with.

      Returns Record<string, string>

    • Returns the arbitrary metadata string for this listener.

      Returns string

    • The protocol of the endpoint that this listener backs.

      Returns null | string

    • The URL that this listener backs.

      Returns null | string