Skip to content

Commit

Permalink
doc: clarify when 'listening' event is emitted
Browse files Browse the repository at this point in the history
Clarify that the `'listening'` event is emitted when the
underlying OS socket is created

This occurs when either `socket.send()` or `socket.bind()`
are first invoked for the respective socket.

Fixes: #23952
  • Loading branch information
dsinecos committed Nov 29, 2018
1 parent 9920dbc commit 70b0e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/dgram.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function is passed a single `Error` object.
added: v0.1.99
-->

The `'listening'` event is emitted whenever a socket begins listening for
datagram messages. This occurs as soon as UDP sockets are created.
The `'listening'` event is emitted on the first invocation of either `socket.send()`
or `socket.bind()` for the respective socket.

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

0 comments on commit 70b0e8e

Please sign in to comment.