- Preparing search index...
- The search index is not available
js-waku
Methods
addDecryptionKey
- addDecryptionKey(key: string | Uint8Array, options?: { contentTopics?: string[]; method?: DecryptionMethod }): void
-
Parameters
-
key: string | Uint8Array
-
Optional
options: { contentTopics?: string[]; method?: DecryptionMethod }
-
Optional
contentTopics?: string[]
-
Returns void
addPeerToAddressBook
- addPeerToAddressBook(peerId: string | PeerId, multiaddrs: Multiaddr[] | string[]): void
-
Parameters
-
peerId: string | PeerId
-
multiaddrs: Multiaddr[] | string[]
Returns void
deleteDecryptionKey
- deleteDecryptionKey(key: string | Uint8Array): void
-
Returns void
dial
- dial(peer: PeerId | Multiaddr, protocols?: Protocols[]): Promise<Stream>
-
Parameters
-
peer: PeerId | Multiaddr
-
Optional
protocols: Protocols[]
Returns Promise<Stream>
isStarted
- isStarted(): boolean
-
Returns boolean
start
- start(): Promise<void>
-
Returns Promise<void>
stop
- stop(): Promise<void>
-
Returns Promise<void>