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

Function failWebsocketConnection

github-actions/saucelabs/set-saucelabs-env.js:17341–17353  ·  view source on GitHub ↗
(ws, reason)

Source from the content-addressed store, hash-verified

17339 var { collectASequenceOfCodePointsFast, removeHTTPWhitespace } = require_data_url();
17340 function isConnecting(ws) {
17341 return ws[kReadyState] === states.CONNECTING;
17342 }
17343 function isEstablished(ws) {
17344 return ws[kReadyState] === states.OPEN;
17345 }
17346 function isClosing(ws) {
17347 return ws[kReadyState] === states.CLOSING;
17348 }
17349 function isClosed(ws) {
17350 return ws[kReadyState] === states.CLOSED;
17351 }
17352 function fireEvent(e, target, eventFactory = (type, init) => new Event(type, init), eventInitDict = {}) {
17353 const event = eventFactory(e, eventInitDict);
17354 target.dispatchEvent(event);
17355 }
17356 function websocketMessageReceived(ws, type, data) {

Callers 6

websocketMessageReceivedFunction · 0.70
processResponseFunction · 0.70
closeWebSocketConnectionFunction · 0.70
runMethod · 0.70
parseControlFrameMethod · 0.70

Calls 3

fireEventFunction · 0.70
abortMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected