From 685465843d6cefa681dc7cae0cd4a4945e6caad3 Mon Sep 17 00:00:00 2001 From: Joakim Uddholm Date: Mon, 31 Oct 2022 14:31:49 +0100 Subject: [PATCH] document correct connection error in client documentation --- docs/client.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/client.md b/docs/client.md index e58b171..42c6b01 100644 --- a/docs/client.md +++ b/docs/client.md @@ -22,7 +22,7 @@ const client = ldap.createClient({ url: ['ldap://127.0.0.1:1389', 'ldap://127.0.0.2:1389'] }); -client.on('error', (err) => { +client.on('connectError', (err) => { // handle connection error }) ```