Skip to content

Commit

Permalink
doc: add comment for net.Server's error event
Browse files Browse the repository at this point in the history
Fixes: #9710
PR-URL: #11136
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Sam Roberts <[email protected]>
  • Loading branch information
jjqq2013 authored and addaleax committed Feb 22, 2017
1 parent 20d86db commit 98eb18b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ added: v0.1.90

* {Error}

Emitted when an error occurs. The [`'close'`][] event will be called directly
following this event. See example in discussion of `server.listen`.
Emitted when an error occurs. Unlike [`net.Socket`][], the [`'close'`][]
event will **not** be emitted directly following this event unless
[`server.close()`][] is manually called. See the example in discussion of
[`server.listen()`][`server.listen(port, host, backlog, callback)`].

### Event: 'listening'
<!-- YAML
Expand Down Expand Up @@ -942,6 +944,7 @@ Returns true if input is a version 6 IP address, otherwise returns false.
[`resume()`]: #net_socket_resume
[`server.getConnections()`]: #net_server_getconnections_callback
[`server.listen(port, host, backlog, callback)`]: #net_server_listen_port_hostname_backlog_callback
[`server.close()`]: #net_server_close_callback
[`socket.connect(options, connectListener)`]: #net_socket_connect_options_connectlistener
[`socket.connect`]: #net_socket_connect_options_connectlistener
[`socket.setTimeout()`]: #net_socket_settimeout_timeout_callback
Expand Down

0 comments on commit 98eb18b

Please sign in to comment.