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') { } ```