rpc-client/dist/network.d.ts

32 lines
896 B
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 {
constructor(dht?: any);
2022-12-04 11:37:24 +00:00
private _factory;
get factory(): RpcNetworkQueryFactory;
2022-08-28 06:33:49 +00:00
private _dht;
get dht(): any;
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;
get relays(): string[];
private _ready?;
get ready(): Promise<void>;
private _bypassCache;
get bypassCache(): boolean;
set bypassCache(value: boolean);
2022-09-22 13:36:04 +00:00
private _maxRelays;
get maxRelays(): number;
set maxRelays(value: number);
2022-08-28 06:33:49 +00:00
addRelay(pubkey: string): void;
removeRelay(pubkey: string): boolean;
clearRelays(): void;
}
//# sourceMappingURL=network.d.ts.map