Skip to content

Commit 603a039

Browse files
committed
[doc] Add JSDoc for the finishRequest option
1 parent c320738 commit 603a039

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/websocket.js

+2
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,8 @@ module.exports = WebSocket;
618618
* @param {(String|URL)} address The URL to which to connect
619619
* @param {Array} protocols The subprotocols
620620
* @param {Object} [options] Connection options
621+
* @param {Function} [options.finishRequest] A function which can be used to
622+
* customize the headers of each http request before it is sent
621623
* @param {Boolean} [options.followRedirects=false] Whether or not to follow
622624
* redirects
623625
* @param {Function} [options.generateMask] The function used to generate the

0 commit comments

Comments
 (0)