mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-14 02:48:50 +00:00
Expose relay funcs (#31)
This commit is contained in:
committed by
GitHub
parent
ae717a1a4a
commit
1b798b2eee
3
index.d.ts
vendored
3
index.d.ts
vendored
@@ -92,6 +92,9 @@ declare type PoolPublishCallback = (status: number, relay: string) => void;
|
||||
declare type RelayPool = {
|
||||
setPrivateKey(key: string): void,
|
||||
addRelay(url: string, opts?: RelayPolicy): Relay,
|
||||
removeRelay(url:string):void,
|
||||
getRelayList():Relay[],
|
||||
relayChangePolicy():Relay,
|
||||
sub(opts: SubscriptionOptions, id?: string): Subscription,
|
||||
publish(event: Event, cb: PoolPublishCallback): Promise<Event>,
|
||||
close: () => void,
|
||||
|
||||
Reference in New Issue
Block a user