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

Commit 1bd20d9

Browse files
committed
feat(dialer): remove conn from on connect callback
1 parent 2e12166 commit 1bd20d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ This method dials a transport to the Peer listening on `multiaddr`.
9292

9393
`[options]` is an optional argument, which can be used by some implementations
9494

95-
`callback` should follow the `function (err, conn)` signature.
95+
`callback` should follow the `function (err)` signature.
9696

97-
`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'.
97+
`err` is an `Error` instance to signal that the dial was unsuccessful, this error can be a 'timeout' or simply 'error'.
9898

9999
### Create a listener
100100

0 commit comments

Comments
 (0)