diff options
Diffstat (limited to 'doc/api/dgram.md')
-rw-r--r-- | doc/api/dgram.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/dgram.md b/doc/api/dgram.md index 4962feef92..06c15ffa25 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -605,13 +605,13 @@ and port can be retrieved using [`socket.address().address`][] and added: v0.1.99 --> -* `type` {string} - Either 'udp4' or 'udp6'. +* `type` {string} - Either `'udp4'` or `'udp6'`. * `callback` {Function} - Attached as a listener to `'message'` events. * Returns: {dgram.Socket} Creates a `dgram.Socket` object of the specified `type`. The `type` argument -can be either `udp4` or `udp6`. An optional `callback` function can be passed -which is added as a listener for `'message'` events. +can be either `'udp4'` or `'udp6'`. An optional `callback` function can be +passed which is added as a listener for `'message'` events. Once the socket is created, calling [`socket.bind()`][] will instruct the socket to begin listening for datagram messages. When `address` and `port` are |