autowebhook
Version:
Automatic ngrok tunnel manager with health checking for webhooks
21 lines • 600 B
TypeScript
import { EventEmitter } from 'events';
import type { AutoWebhookConfig } from './types.js';
export declare class AutoWebhook extends EventEmitter {
private readonly config;
private tunnels;
private isStopping;
private readonly maxStartAttempts;
constructor(config: AutoWebhookConfig);
start(): Promise<string[]>;
private startTunnel;
private createProvider;
private restartTunnel;
stop(): Promise<void>;
getUrls(): string[];
getStatus(): {
tunnels: {
[key: string]: any;
};
};
}
//# sourceMappingURL=autowebhook.d.ts.map