Skip to content

Commit 995f133

Browse files
committed
drop hardcoded maxpayload and allow ws compression to fix sporadically hanging zon tests
- `perMessageDeflate: false` was introduced by abb97c2 in upstream/master (was merged in 0.33.3-lum.15)
1 parent aaa48c2 commit 995f133

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

lib/chrome.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,18 +218,15 @@ class Chrome extends EventEmitter {
218218

219219
// establish the WebSocket connection and start processing user commands
220220
_connectToWebSocket() {
221-
const options = this.connectOptions;
222221
return new Promise((fulfill, reject) => {
223222
// create the WebSocket
224223
try {
225224
if (this.secure) {
226225
this.webSocketUrl = this.webSocketUrl.replace(/^ws:/i, 'wss:');
227226
}
228227
this._ws = new WebSocket(this.webSocketUrl, [], {
229-
maxPayload: 256 * 1024 * 1024,
230-
perMessageDeflate: false,
231228
followRedirects: true,
232-
...options,
229+
...this.connectOptions
233230
});
234231
} catch (err) {
235232
// handles bad URLs

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"interface"
1616
],
1717
"homepage": "https://github.com/cyrus-and/chrome-remote-interface",
18-
"version": "0.33.3-lum.15",
18+
"version": "0.33.3-lum.16",
1919
"repository": {
2020
"type": "git",
2121
"url": "git://github.com/cyrus-and/chrome-remote-interface.git"

0 commit comments

Comments
 (0)