Creates a new TunnelInstance with the provided native addon and options.
The native addon instance.
The tunnel configuration options.
Gets the current argument string for the tunnel configuration.
Delegates to Config#getArgument.
The argument string, or null if unavailable.
Gets the current force configuration setting for the tunnel.
Delegates to Config#getForce.
The force setting, or null if unavailable.
Gets the current server address for the tunnel.
Delegates to Config#getServerAddress.
The server address, or null if unavailable.
Gets the current SNI server name for the tunnel.
Delegates to Config#getSniServerName.
The SNI server name, or null if unavailable.
Gets the current status of the tunnel.
Returns the status from Tunnel#status.
The tunnel status.
Gets the current authentication token for the tunnel.
Delegates to Config#getToken.
The authentication token, or null if unavailable.
Checks if the tunnel is currently active.
Delegates to Tunnel#tunnelIsActive.
True if the tunnel is active, false otherwise.
Starts the tunnel and returns the public URLs.
Delegates to Tunnel#start.
Resolves with the list of public tunnel URLs.
Starts web debugging for the tunnel on the specified local port.
Delegates to Tunnel#startWebDebugging.
The local port to start web debugging on.
Stops the tunnel and cleans up resources.
Delegates to Tunnel#tunnelStop.
Requests additional forwarding for the tunnel.
Delegates to Tunnel#tunnelRequestAdditionalForwarding.
The remote address to forward from.
The local address to forward to.
Gets the list of public URLs for the tunnel.
Delegates to Tunnel#getUrls.
The list of public tunnel URLs.
Represents a high-level tunnel instance, managing both configuration and tunnel lifecycle. Provides methods to start, stop, and interact with a Pinggy tunnel.
Internally uses Config for configuration and Tunnel for tunnel management.