-
Notifications
You must be signed in to change notification settings - Fork 27
[transport] Document filter function #31
Comments
Hello, has this been fixed? Using js-ipfs won't automatically produce this issue unless
the issue, as alanshaw has pointed out, is because Transport filter not implemented.
|
emmm.... I've got it wrong. t.filter is implemented.
in |
On startup libp2p should check if the transport is an instance of a class/function and handle it appropriately. In addition to documenting |
Am I correct to assume that this is still being fixed? |
It still needs to be documented and added, yes, but the core transports do have the appropriate support. This would be a nice thing to roll out with the async/await updates to transports. PRs are welcome and appreciated! |
Fixed during the migration to async await, https://github.com/libp2p/js-interfaces/tree/master/src/transport#filtering-addresses. |
filter
filters the list of multiaddrs that this transport is willing to dial to.It's a required function but is not documented.
The text was updated successfully, but these errors were encountered: