Skip to content
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.

Commit

Permalink
feat(dialer): remove conn from on connect callback
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Sep 5, 2016
1 parent 2e12166 commit 1bd20d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1bd20d9

Please sign in to comment.