rpc-client/dist/network.d.ts

35 lines
1.0 KiB
TypeScript
Raw Normal View History

2022-12-04 11:37:24 +00:00
import RpcNetworkQueryFactory from "./query/index.js";
2022-08-28 06:33:49 +00:00
export default class RpcNetwork {
2023-03-18 16:11:41 +00:00
private _relaysAvailablePromise?;
private _relaysAvailableResolve?;
constructor(swarm?: any);
private _methods;
get methods(): Map<string, Set<string>>;
2022-12-04 11:37:24 +00:00
private _factory;
get factory(): RpcNetworkQueryFactory;
2023-03-18 16:11:41 +00:00
private _swarm;
get swarm(): any;
2022-08-28 06:33:49 +00:00
private _majorityThreshold;
get majorityThreshold(): number;
set majorityThreshold(value: number);
private _queryTimeout;
get queryTimeout(): number;
set queryTimeout(value: number);
private _relayTimeout;
get relayTimeout(): number;
set relayTimeout(value: number);
private _relays;
2023-03-18 16:11:41 +00:00
get relays(): Map<string, string[]>;
2022-08-28 06:33:49 +00:00
private _ready?;
get ready(): Promise<void>;
2023-03-18 16:11:41 +00:00
get readyWithRelays(): Promise<void>;
2022-08-28 06:33:49 +00:00
private _bypassCache;
get bypassCache(): boolean;
set bypassCache(value: boolean);
2023-03-19 19:11:34 +00:00
getAvailableRelay(module: string, method: string): any;
2023-03-18 16:11:41 +00:00
getRelay(pubkey: string): any;
private init;
private setupRelayPromise;
2022-08-28 06:33:49 +00:00
}
//# sourceMappingURL=network.d.ts.map