Skip to content

Commit 9786f80

Browse files
author
Daryl Lau
committed
Clarify event call order in abort case
see #310 Documentation doesn't seem clear about when events are called.
1 parent 5bf869a commit 9786f80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ form.on('error', function(err) {
249249
#### 'aborted'
250250

251251

252-
Emitted when the request was aborted by the user. Right now this can be due to a 'timeout' or 'close' event on the socket. In the future there will be a separate 'timeout' event (needs a change in the node core).
252+
Emitted when the request was aborted by the user. Right now this can be due to a 'timeout' or 'close' event on the socket. After this event is emitted, an `error` event will follow. In the future there will be a separate 'timeout' event (needs a change in the node core).
253253
```javascript
254254
form.on('aborted', function() {
255255
});

0 commit comments

Comments
 (0)