document correct connection error in client documentation

This commit is contained in:
Joakim Uddholm 2022-10-31 14:31:49 +01:00 committed by James Sumners
parent 9de9c703ab
commit 685465843d
1 changed files with 1 additions and 1 deletions

View File

@ -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
})
```