Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
doc: added explicitly that the close event does not take arguments
Explicitly added in the docs that the close event does not expect
any arguments when invoked.

Fixes: #20018
  • Loading branch information
indranil committed Apr 14, 2018
commit 83008dbe4005bc15e5356fb6104d3b299abece6b
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. It
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
Feel free to ignore, but maybe it would be a bit more clear if we write "Its listener does not expect any arguments"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Good idea. I edited the wording to reflect the change.

does not expect any arguments.

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