You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ You will also require the LDAP Development Libraries (on Ubuntu, `sudo apt-get i
41
41
42
42
Reconnection
43
43
==========
44
-
If the connection fails during operation, the client library will handle the reconnection, calling the function specified in the reconnect option. This callback is a good place to put bind()s and other things you want to always be in place.
44
+
If the connection fails during operation, the client library will handle the reconnection, calling the function specified in the connect option. This callback is a good place to put bind()s and other things you want to always be in place.
45
45
46
46
You must close() the instance to stop the reconnect behavior.
47
47
@@ -65,20 +65,20 @@ var ldap = new LDAP({
65
65
attrs:'*', // default attribute list for future searches
66
66
filter:'(objectClass=*)', // default filter for all future searches
67
67
scope:LDAP.SUBTREE, // default scope for all future searches
68
-
reconnect:function(), // optional function to call when connect/reconnect occurs
68
+
connect:function(), // optional function to call when connect/reconnect occurs
69
69
disconnect: function(), // optional function to call when disconnect occurs
70
70
}, function(err) {
71
71
// connected and ready
72
72
});
73
73
74
74
```
75
75
76
-
The reconnect handler is called on initial connect as well, so this function is a really good place to do a bind() or any other things you want to set up for every connection.
76
+
The connect handler is called on initial connect as well as on reconnect, so this function is a really good place to do a bind() or any other things you want to set up for every connection.
0 commit comments