Skip to content

Commit 40734d8

Browse files
committed
[minor] Add missing option in JSDoc comment
1 parent 0556f31 commit 40734d8

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lib/websocket-server.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,20 @@ class WebSocketServer extends EventEmitter {
2121
* Create a `WebSocketServer` instance.
2222
*
2323
* @param {Object} options Configuration options
24+
* @param {Number} options.backlog The maximum length of the queue of pending
25+
* connections
26+
* @param {Boolean} options.clientTracking Specifies whether or not to track
27+
* clients
28+
* @param {Function} options.handleProtocols An hook to handle protocols
2429
* @param {String} options.host The hostname where to bind the server
30+
* @param {Number} options.maxPayload The maximum allowed message size
31+
* @param {Boolean} options.noServer Enable no server mode
32+
* @param {String} options.path Accept only connections matching this path
33+
* @param {(Boolean|Object)} options.perMessageDeflate Enable/disable
34+
* permessage-deflate
2535
* @param {Number} options.port The port where to bind the server
2636
* @param {http.Server} options.server A pre-created HTTP/S server to use
2737
* @param {Function} options.verifyClient An hook to reject connections
28-
* @param {Function} options.handleProtocols An hook to handle protocols
29-
* @param {String} options.path Accept only connections matching this path
30-
* @param {Boolean} options.noServer Enable no server mode
31-
* @param {Boolean} options.clientTracking Specifies whether or not to track clients
32-
* @param {(Boolean|Object)} options.perMessageDeflate Enable/disable permessage-deflate
33-
* @param {Number} options.maxPayload The maximum allowed message size
3438
* @param {Function} callback A listener for the `listening` event
3539
*/
3640
constructor(options, callback) {

0 commit comments

Comments
 (0)