mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-05 16:21:37 +00:00
* fix(e2e): bound Pond gateway connections * fix(e2e): declare Pond gateway RPC types * fix(e2e): close Pond socket when setup fails --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
24 lines
518 B
TypeScript
24 lines
518 B
TypeScript
export type PondGatewayRpcOptions = {
|
|
url: string;
|
|
token: string;
|
|
scopes: string[];
|
|
openTimeoutMs?: number;
|
|
webSocketFactory?: (target: string) => unknown;
|
|
};
|
|
|
|
export type PondGatewayRpcRequestOptions = {
|
|
expectFinal?: boolean;
|
|
timeoutMs?: number;
|
|
};
|
|
|
|
export declare class PondGatewayRpc {
|
|
constructor(options: PondGatewayRpcOptions);
|
|
connect(): Promise<void>;
|
|
request(
|
|
method: string,
|
|
params?: unknown,
|
|
options?: PondGatewayRpcRequestOptions,
|
|
): Promise<unknown>;
|
|
close(): void;
|
|
}
|