From ea761933702bde061c2f5ac8aed5f62f9d5439ea Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Fri, 25 Nov 2022 18:57:14 +0100 Subject: [PATCH] [doc] Improve doc for the `callback` argument of `WebSocketServer` Clarify that the `callback` argument is added as a listener for the `'listening'` event only when the `port` option is set. Fixes #2100 --- doc/ws.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ws.md b/doc/ws.md index abf0f0735..dd51eca9c 100644 --- a/doc/ws.md +++ b/doc/ws.md @@ -171,7 +171,7 @@ compared to the threshold. This determines if compression is used for the entire message. `callback` will be added as a listener for the `'listening'` event on the HTTP -server when not operating in "noServer" mode. +server when the `port` option is set. ### Event: 'close'