ravendb
Version:
RavenDB client for Node.js
18 lines • 1.07 kB
TypeScript
import { Socket } from "node:net";
import { IAuthOptions } from "../Auth/AuthOptions.js";
import { TcpConnectionInfo } from "../ServerWide/Commands/GetTcpInfoCommand.js";
import { OperationTypes, SupportedFeatures } from "../ServerWide/Tcp/TcpConnectionHeaderMessage.js";
export declare class TcpUtils {
static connect(urlString: string, serverCertificate: string, clientCertificate: IAuthOptions): Promise<Socket>;
static connectSecuredTcpSocket(info: TcpConnectionInfo, serverCertificate: string, clientCertificate: IAuthOptions, operationType: OperationTypes, negotiationCallback: NegotiationCallback): Promise<ConnectSecuredTcpSocketResult>;
private static _invokeNegotiation;
}
type NegotiationCallback = (url: string, info: TcpConnectionInfo, socket: Socket) => Promise<SupportedFeatures>;
export declare class ConnectSecuredTcpSocketResult {
url: string;
socket: Socket;
supportedFeatures: SupportedFeatures;
constructor(url: string, socket: Socket, supportedFeatures: SupportedFeatures);
}
export {};
//# sourceMappingURL=TcpUtils.d.ts.map