File tree 1 file changed +10
-6
lines changed 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -21,16 +21,20 @@ class WebSocketServer extends EventEmitter {
21
21
* Create a `WebSocketServer` instance.
22
22
*
23
23
* @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
24
29
* @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
25
35
* @param {Number } options.port The port where to bind the server
26
36
* @param {http.Server } options.server A pre-created HTTP/S server to use
27
37
* @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
34
38
* @param {Function } callback A listener for the `listening` event
35
39
*/
36
40
constructor ( options , callback ) {
You can’t perform that action at this time.
0 commit comments