Skip to content
Open
Changes from all commits
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
3 changes: 3 additions & 0 deletions doc/api/dgram.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ changes:
* `port` {integer}
* `address` {string}
* `callback` {Function} with no parameters. Called when binding is complete.
* Returns: {dgram.Socket} The socket itself.

For UDP sockets, causes the `dgram.Socket` to listen for datagram
messages on a named `port` and optional `address`. If `port` is not
Expand Down Expand Up @@ -319,6 +320,7 @@ added: v0.11.14
* `exclusive` {boolean}
* `fd` {integer}
* `callback` {Function}
* Returns: {dgram.Socket} The socket itself.

For UDP sockets, causes the `dgram.Socket` to listen for datagram
messages on a named `port` and optional `address` that are passed as
Expand Down Expand Up @@ -410,6 +412,7 @@ added: v0.1.99
-->

* `callback` {Function} Called when the socket has been closed.
* Returns: {dgram.Socket} The socket itself.

Close the underlying socket and stop listening for data on it. If a callback is
provided, it is added as a listener for the [`'close'`][] event.
Expand Down
Loading