Skip to content

Commit

Permalink
[doc] Add JSDoc for the finishRequest option
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Dec 9, 2023
1 parent fe97e5c commit 837c56d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 837c56d

Please sign in to comment.