mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-16 18:20:50 +00:00
dial
This commit is contained in:
parent
ba59189804
commit
3caebb18be
2
types/libp2p/index.d.ts
vendored
2
types/libp2p/index.d.ts
vendored
@ -82,7 +82,7 @@ declare class LibP2p {
|
||||
readonly peerInfo: PeerInfo;
|
||||
readonly peerBook: PeerBook;
|
||||
|
||||
dial(peerInfo: PeerInfo): Promise<void>;
|
||||
dial(peerInfo: PeerInfo): Promise<LibP2pConnection>;
|
||||
dialProtocol(peerInfo: PeerInfo | Multiaddr.Multiaddr, protocol: string): Promise<LibP2pConnection>;
|
||||
hangUp(peerInfo: PeerInfo): Promise<void>;
|
||||
handle(protocol: string, handler: (protocol: string, conn: LibP2pConnection) => any, matcher?: (protocol: string, requestedProtocol: string, cb: (error: Error | null, accept: boolean) => void) => any): void;
|
||||
|
Loading…
x
Reference in New Issue
Block a user