superagent icon indicating copy to clipboard operation
superagent copied to clipboard

All events emitted by superagent not documented

Open villeodell opened this issue 6 years ago • 2 comments

Hello. It would be very useful to have documentation for all events emitted.

Currently only 'error' and 'progress' are mentioned. I don't believe 'abort' (fired on timeout) is documented .. are there others?

villeodell avatar Sep 04 '18 13:09 villeodell

That's a very good point. Would you like to help documenting them?

Search the code for uses of emit function. There's also response event in addition to the ones you've listed.

kornelski avatar Sep 04 '18 14:09 kornelski

Ordinarily yes, but I've got a pretty full plate right now and was only exploring the possibility of using the node module. Sorry to raise the issue and then not contribute to resolving. Perhaps someone else can take it up.

villeodell avatar Sep 07 '18 13:09 villeodell