mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-05-12 13:57:12 +00:00
added readonly peerInfo accessor
This commit is contained in:
parent
e34d4c2a6c
commit
0bd14a8898
2
types/libp2p/index.d.ts
vendored
2
types/libp2p/index.d.ts
vendored
@ -67,6 +67,8 @@ declare class LibP2p {
|
|||||||
|
|
||||||
constructor(options: LibP2p.Options);
|
constructor(options: LibP2p.Options);
|
||||||
|
|
||||||
|
readonly peerInfo: PeerInfo;
|
||||||
|
|
||||||
dial(peerInfo: PeerInfo, cb: (error: Error | null) => any): void;
|
dial(peerInfo: PeerInfo, cb: (error: Error | null) => any): void;
|
||||||
dialProtocol(peerInfo: PeerInfo, protocol: string, cb: (error: Error | null, conn?: LibP2pConnection) => any): void;
|
dialProtocol(peerInfo: PeerInfo, protocol: string, cb: (error: Error | null, conn?: LibP2pConnection) => 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;
|
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