From 603a0391de32732df415778ed32f311a21c82731 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sat, 9 Dec 2023 13:23:48 +0100 Subject: [PATCH] [doc] Add JSDoc for the `finishRequest` option --- lib/websocket.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/websocket.js b/lib/websocket.js index 60da37d4f..312f6a237 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -618,6 +618,8 @@ module.exports = WebSocket; * @param {(String|URL)} address The URL to which to connect * @param {Array} protocols The subprotocols * @param {Object} [options] Connection options + * @param {Function} [options.finishRequest] A function which can be used to + * customize the headers of each http request before it is sent * @param {Boolean} [options.followRedirects=false] Whether or not to follow * redirects * @param {Function} [options.generateMask] The function used to generate the