Function forward

  • Transform a json object configuration into a listener. See Config for the full set of options.

    Examples:
    listener = await ngrok.forward("localhost:4242");
    listener = await ngrok.forward({addr: "https://localhost:8443", authtoken_from_env: true});
    listener = await ngrok.forward({addr: "unix:///path/to/unix.socket", basic_auth: "ngrok:online1line", authtoken_from_env: true});

    Parameters

    • config: string | number | Config

    Returns Promise<Listener>

Generated using TypeDoc