MCPcopy Create free account
hub / github.com/angular/dev-infra / isValidClientWindowBits

Function isValidClientWindowBits

github-actions/saucelabs/set-saucelabs-env.js:17380–17392  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

17378 if (ws[kReadyState] !== states.OPEN) {
17379 return;
17380 }
17381 let dataForEvent;
17382 if (type === opcodes.TEXT) {
17383 try {
17384 dataForEvent = utf8Decode(data);
17385 } catch (e) {
17386 failWebsocketConnection(ws, "Received invalid UTF-8 in text frame.");
17387 return;
17388 }
17389 } else if (type === opcodes.BINARY) {
17390 if (ws[kBinaryType] === "blob") {
17391 dataForEvent = new Blob([data]);
17392 } else {
17393 dataForEvent = toArrayBuffer(data);
17394 }
17395 }

Callers 1

decompressMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected