Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

client listener events documentations #340

Closed
iamtennislover opened this issue Jan 20, 2016 · 5 comments
Closed

client listener events documentations #340

iamtennislover opened this issue Jan 20, 2016 · 5 comments

Comments

@iamtennislover
Copy link

Hi,
I would like to know what are the events that I can listen on for client? Is there any documentation for this?

 var client = ldap.createClient({
            url: testurl
        });
client.on('error', function(err) {console.log(err)})
@dcolens
Copy link

dcolens commented Jan 28, 2016

I too would be interested to get some documentation about client events, there seems to be quite a lot:

  • error
  • destroy
  • idle
  • connectError
  • setup
  • resultError
  • setupError
  • socketTimeout
  • end
  • connect
  • close
  • timeout

while many are easy to guess, it would be great to get some documentation on the expected flows for these events :)

@teemuniiranen
Copy link

teemuniiranen commented Dec 28, 2017

Definitely some documentation is needed. I am currently struggling with a close for example. I have no idea how to test and raise this event but without handling the event it is crashing my app.

at Client._onClose (/data/app/node_modules/ldapjs/lib/client/client.js:1272:19)
at Object.onceWrapper (events.js:293:19)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at TCP._handle.close [as _onclose] (net.js:511:12)

@edperry
Copy link

edperry commented Jul 13, 2018

Wow this would have been really nice to have in the documentation.

@UziTech
Copy link
Member

UziTech commented Oct 13, 2019

It might also be worth it to consolidate some of these events to make them more intuitive

@jsumners
Copy link
Member

👋

On February 22, 2023, we released version 3 of this library. As a result, we are closing this issue/pull request.

Please see issue #839 for more information, including how to proceed if you feel this closure is in error.

@ldapjs ldapjs locked as resolved and limited conversation to collaborators Feb 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants