mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-25 16:22:32 +00:00
feat(dialer): remove conn from on connect callback
This commit is contained in:
parent
2e12166ba8
commit
1bd20d94d9
@ -92,9 +92,9 @@ This method dials a transport to the Peer listening on `multiaddr`.
|
||||
|
||||
`[options]` is an optional argument, which can be used by some implementations
|
||||
|
||||
`callback` should follow the `function (err, conn)` signature.
|
||||
`callback` should follow the `function (err)` signature.
|
||||
|
||||
`conn` is the same `conn` that gets returned by call, which should follow [`interface-connection`](https://github.com/diasdavid/interface-connection). `err` is an `Error` instance to signal that the dial was unsuccessful, this error can be a 'timeout' or simply 'error'.
|
||||
`err` is an `Error` instance to signal that the dial was unsuccessful, this error can be a 'timeout' or simply 'error'.
|
||||
|
||||
### Create a listener
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user