diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-11-03 21:53:06 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-14 10:02:33 +0300 |
commit | 0e06b350b6d7c80875321531593efc6f273620e5 (patch) | |
tree | 1aac5d70f91b686e3cdac376ff6d40cb585e238d /doc/api/net.md | |
parent | 9409883dc5f96fb5e9dc7ee34e005547df50418c (diff) |
fs,net: standardize `pending` stream property
Use the same property name as http2 does to indicate that
the stream is in the state before the `ready` event is emitted.
PR-URL: https://github.com/nodejs/node/pull/24067
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/net.md')
-rw-r--r-- | doc/api/net.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/api/net.md b/doc/api/net.md index 07c88cc8852..2ce807ec774 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -724,6 +724,17 @@ The numeric representation of the local port. For example, `80` or `21`. Pauses the reading of data. That is, [`'data'`][] events will not be emitted. Useful to throttle back an upload. +### socket.pending +<!-- YAML +added: REPLACEME +--> + +* {boolean} + +This is `true` if the socket is not connected yet, either because `.connect()` +has not yet been called or because it is still in the process of connecting +(see [`socket.connecting`][]). + ### socket.ref() <!-- YAML added: v0.9.1 @@ -1167,6 +1178,7 @@ Returns `true` if input is a version 6 IP address, otherwise returns `false`. [`socket.connect(options)`]: #net_socket_connect_options_connectlistener [`socket.connect(path)`]: #net_socket_connect_path_connectlistener [`socket.connect(port, host)`]: #net_socket_connect_port_host_connectlistener +[`socket.connecting`]: #net_socket_connecting [`socket.destroy()`]: #net_socket_destroy_exception [`socket.end()`]: #net_socket_end_data_encoding_callback [`socket.pause()`]: #net_socket_pause |