Skip to content

Commit

Permalink
doc: close event does not take arguments
Browse files Browse the repository at this point in the history
Explicitly added in the docs that the close event does not expect
any arguments when invoked.

Fixes: #20018

Backport-PR-URL: #22850
PR-URL: #20031
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
indranil authored and BethGriggs committed Oct 16, 2018
1 parent 5862d03 commit c0d1423
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ solely on the API of the `Http2Session`.
added: v8.4.0
-->

The `'close'` event is emitted once the `Http2Session` has been destroyed.
The `'close'` event is emitted once the `Http2Session` has been destroyed. Its
listener does not expect any arguments.

#### Event: 'connect'
<!-- YAML
Expand Down

0 comments on commit c0d1423

Please sign in to comment.