Skip to content

Commit 851f1fc

Browse files
Tonylpinca
authored andcommitted
Added documentation for closeTimeout.
1 parent 79d31f8 commit 851f1fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

doc/ws.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ This class represents a WebSocket server. It extends the `EventEmitter`.
8080
in response to a ping. Defaults to `true`.
8181
- `backlog` {Number} The maximum length of the queue of pending connections.
8282
- `clientTracking` {Boolean} Specifies whether or not to track clients.
83+
- `closeTimeout` {Number} Timeout in milliseconds for graceful close.
8384
- `handleProtocols` {Function} A function which can be used to handle the
8485
WebSocket subprotocols. See description below.
8586
- `host` {String} The hostname where to bind the server.
@@ -304,6 +305,7 @@ This class represents a WebSocket. It extends the `EventEmitter`.
304305
the WHATWG standardbut may negatively impact performance.
305306
- `autoPong` {Boolean} Specifies whether or not to automatically send a pong
306307
in response to a ping. Defaults to `true`.
308+
- `closeTimeout` {Number} Timeout in milliseconds for graceful close.
307309
- `finishRequest` {Function} A function which can be used to customize the
308310
headers of each HTTP request before it is sent. See description below.
309311
- `followRedirects` {Boolean} Whether or not to follow redirects. Defaults to

0 commit comments

Comments
 (0)