Skip to content

Commit

Permalink
[doc] Improve doc for the callback argument of WebSocketServer
Browse files Browse the repository at this point in the history
Clarify that the `callback` argument is added as a listener for the
`'listening'` event only when the `port` option is set.

Fixes #2100
  • Loading branch information
lpinca committed Nov 25, 2022
1 parent afd8c62 commit ea76193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/ws.md
Expand Up @@ -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'

Expand Down

0 comments on commit ea76193

Please sign in to comment.