- Preparing search index...
- The search index is not available
js-waku
Methods
addPeerToAddressBook
- addPeerToAddressBook(peerId: string | PeerId, multiaddrs: Multiaddr[] | string[]): void
-
Parameters
-
peerId: string | PeerId
-
multiaddrs: Multiaddr[] | string[]
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>