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

Function onSocketData

github-actions/browserstack/set-browserstack-env.js:17636–17640  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

17634 useParallelQueue: true,
17635 dispatcher: options.dispatcher,
17636 processResponse(response) {
17637 var _a, _b;
17638 if (response.type === "error" || response.status !== 101) {
17639 failWebsocketConnection(ws, "Received network error or non-101 status code.");
17640 return;
17641 }
17642 if (protocols.length !== 0 && !response.headersList.get("Sec-WebSocket-Protocol")) {
17643 failWebsocketConnection(ws, "Server did not respond with sent protocols.");

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected