We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5922744 commit 6bc5757Copy full SHA for 6bc5757
lib/chrome.js
@@ -63,6 +63,8 @@ class Chrome extends EventEmitter {
63
this._nextCommandId = 1;
64
// properties
65
this.webSocketUrl = undefined;
66
+ this.webSocketProtocols = options.wsProtocols;
67
+ this.webSocketOptions = options.wsOptions;
68
// operations
69
this._start();
70
}
@@ -220,7 +222,9 @@ class Chrome extends EventEmitter {
220
222
if (this.secure) {
221
223
this.webSocketUrl = this.webSocketUrl.replace(/^ws:/i, 'wss:');
224
- this._ws = new WebSocket(this.webSocketUrl);
225
+ this._ws = new WebSocket(this.webSocketUrl,
226
+ this.webSocketProtocols,
227
+ this.webSocketOptions);
228
} catch (err) {
229
// handles bad URLs
230
reject(err);
0 commit comments