Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
fix: expose getListeners method from the transport manager (#400)
Browse files Browse the repository at this point in the history
To make transports that piggy-back on top of other transports able
to report their multiaddrs more reliably, expose the getListeners
function implemented by the transport manager.
  • Loading branch information
achingbrain committed May 15, 2023
1 parent 8ab386d commit 94dc4ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/interface-transport/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export interface TransportManager {
dial: (ma: Multiaddr, options?: any) => Promise<Connection>
getAddrs: () => Multiaddr[]
getTransports: () => Transport[]
getListeners: () => Listener[]
transportForMultiaddr: (ma: Multiaddr) => Transport | undefined
listen: (addrs: Multiaddr[]) => Promise<void>
remove: (key: string) => Promise<void>
Expand Down

0 comments on commit 94dc4ed

Please sign in to comment.