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
7 changes: 5 additions & 2 deletions doc/api/dgram.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,11 @@ 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 once the `dgram.Socket` is addressable and
can receive data.This happens either explicitly with `socket.bind()` or
Comment thread
addaleax marked this conversation as resolved.
Outdated
implicitly the first time data is sent using `socket.send()`.
Until the `dgram.Socket` is listening, the underlying system resources do not
exist and calls such as `socket.address()` and `socket.SetTTL()` will fail.
Comment thread
addaleax marked this conversation as resolved.
Outdated

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