From 4bff2e20b8ced23013c40dfab27106d1d6bff77f Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Wed, 7 Oct 2020 08:52:11 +0200 Subject: [PATCH] docs: fix `preConnect` signature in example --- docs/Aedes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Aedes.md b/docs/Aedes.md index d6bfac87..3c33f78b 100644 --- a/docs/Aedes.md +++ b/docs/Aedes.md @@ -269,7 +269,7 @@ aedes.preConnect = function(client, packet, callback) { ``` ```js -aedes.preConnect = function(client, callback) { +aedes.preConnect = function(client, packet, callback) { callback(new Error('connection error'), client.conn.remoteAddress !== '::1') { } ```