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

Function websocketMessageReceived

github-actions/saucelabs/set-saucelabs-env.js:17274–17297  ·  view source on GitHub ↗
(ws, type, data)

Source from the content-addressed store, hash-verified

17272 };
17273 var sentCloseFrameState = {
17274 NOT_SENT: 0,
17275 PROCESSING: 1,
17276 SENT: 2
17277 };
17278 var opcodes = {
17279 CONTINUATION: 0,
17280 TEXT: 1,
17281 BINARY: 2,
17282 CLOSE: 8,
17283 PING: 9,
17284 PONG: 10
17285 };
17286 var maxUnsigned16Bit = __pow(2, 16) - 1;
17287 var parserStates = {
17288 INFO: 0,
17289 PAYLOADLENGTH_16: 2,
17290 PAYLOADLENGTH_64: 3,
17291 READ_DATA: 4
17292 };
17293 var emptyBuffer = Buffer.allocUnsafe(0);
17294 var sendHints = {
17295 string: 1,
17296 typedArray: 2,
17297 arrayBuffer: 3,
17298 blob: 4
17299 };
17300 module.exports = {

Callers 1

runMethod · 0.70

Calls 3

failWebsocketConnectionFunction · 0.70
toArrayBufferFunction · 0.70
fireEventFunction · 0.70

Tested by

no test coverage detected