mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-04-10 06:06:05 +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 peerInfo: PeerInfo;
|
||||||
readonly peerBook: PeerBook;
|
readonly peerBook: PeerBook;
|
||||||
|
|
||||||
dial(peerInfo: PeerInfo): Promise<void>;
|
dial(peerInfo: PeerInfo): Promise<LibP2pConnection>;
|
||||||
dialProtocol(peerInfo: PeerInfo | Multiaddr.Multiaddr, protocol: string): Promise<LibP2pConnection>;
|
dialProtocol(peerInfo: PeerInfo | Multiaddr.Multiaddr, protocol: string): Promise<LibP2pConnection>;
|
||||||
hangUp(peerInfo: PeerInfo): Promise<void>;
|
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;
|
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