From 1bd20d94d9d8f7ec2b3d79035002e641126f40bf Mon Sep 17 00:00:00 2001 From: David Dias Date: Thu, 1 Sep 2016 17:34:52 -0400 Subject: [PATCH] feat(dialer): remove conn from on connect callback --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cd43b50..4097239 100644 --- a/README.md +++ b/README.md @@ -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