Files
openclaw/scripts/e2e/lib/pond-gateway-rpc.d.mts
Alix-007 0159f54268 fix(e2e): bound Pond gateway connections (#108973)
* 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>
2026-07-16 08:18:44 -07:00

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;
}