Packages@robojs/server
CloudflareProvider
Class: CloudflareProvider
Cloudflare Tunnel Provider implementation.
Implements
Constructors
new CloudflareProvider()
new CloudflareProvider(): CloudflareProviderReturns
Properties
| Property | Type | Default value | Description |
|---|---|---|---|
name | string | 'cloudflare' | Provider name (e.g., 'cloudflare', 'ngrok') |
Methods
initialize()
initialize(config): Promise<boolean>Initialize tunnel configuration (optional, for static tunnels)
Parameters
| Parameter | Type |
|---|---|
config | TunnelProviderConfig |
Returns
Promise<boolean>
Implementation of
install()
install(): Promise<void>Install the tunnel binary
Returns
Promise<void>
Implementation of
isInstalled()
isInstalled(): booleanCheck if the tunnel binary is installed
Returns
boolean
Implementation of
start()
start(url, config?): Promise<TunnelInstance>Start the tunnel and return the instance
Parameters
| Parameter | Type |
|---|---|
url | string |
config? | TunnelProviderConfig |
Returns
Promise<TunnelInstance>
Implementation of
stop()
stop(instance, signal): Promise<void>Stop a running tunnel instance
Parameters
| Parameter | Type | Default value |
|---|---|---|
instance | TunnelInstance | undefined |
signal | Signals | 'SIGINT' |
Returns
Promise<void>
