@push.rocks/smartproxy
Version:
A powerful proxy package with unified route-based configuration for high traffic management. Features include SSL/TLS support, flexible routing patterns, WebSocket handling, advanced security options, and automatic ACME certificate management.
32 lines (31 loc) • 1.11 kB
TypeScript
import * as plugins from '../../plugins.js';
export interface IChallengeProviderRelayServerOptions {
providerTimeoutMs?: number;
maxActiveProviderOperations?: number;
maxUnsettledProviderOperations?: number;
}
export declare class ChallengeProviderRelayServer {
private providers;
private providerTimeoutMs;
private maxActiveProviderOperations;
private maxUnsettledProviderOperations;
private activeProviderOperations;
private unsettledProviderOperations;
private server;
private socketPath;
private activeSockets;
private startPromise?;
constructor(providers: Map<string, plugins.smartchallenge.IChallengeProvider>, optionsArg?: IChallengeProviderRelayServerOptions);
getSocketPath(): string;
start(): Promise<void>;
private startInternal;
stop(): Promise<void>;
private handleConnection;
private dispatchLine;
private withProviderTimeout;
private writeResponse;
private createErrorResponse;
private estimateJsonByteLength;
private estimateJsonByteLengthInternal;
private estimateJsonStringByteLength;
}