feat(dialer): remove conn from on connect callback

This commit is contained in:
David Dias 2016-09-01 17:34:52 -04:00
parent 2e12166ba8
commit 1bd20d94d9

View File

@ -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