@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.
13 lines (12 loc) • 439 B
TypeScript
import * as plugins from '../../plugins.js';
declare module 'net' {
interface Socket {
encrypted?: boolean;
authorizationError?: Error;
getTLSVersion?(): string;
getPeerCertificate?(detailed?: boolean): any;
getSession?(): Buffer;
}
}
export declare function isTLSSocket(socket: plugins.net.Socket): boolean;
export declare function getTLSVersion(socket: plugins.net.Socket): string | null;