File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,9 @@ assigned a random port number and is bound to the "all interfaces" address
100100An optional callback may be specified to detect DNS errors or for determining
101101when it's safe to reuse the ` buf ` object. Note that DNS lookups delay the time
102102to send for at least one tick. The only way to know for sure that the datagram
103- has been sent is by using a callback.
103+ has been sent is by using a callback. If an error occurs and a callback is given,
104+ the error will be the first argument to the callback. If a callback is not given,
105+ the error is emitted as an ` 'error' ` event on the ` socket ` object.
104106
105107With consideration for multi-byte characters, ` offset ` and ` length ` will
106108be calculated with respect to
You can’t perform that action at this time.
0 commit comments