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

Method add

github-actions/browserstack/set-browserstack-env.js:18182–18209  ·  view source on GitHub ↗
(item, cb, hint)

Source from the content-addressed store, hash-verified

18180 }
18181 if (__privateGet(this, _maxPayloadSize) > 0 && __privateGet(this, _fragmentsBytes) > __privateGet(this, _maxPayloadSize)) {
18182 failWebsocketConnectionWithCode(this.ws, 1009, new MessageSizeExceededError().message);
18183 return;
18184 }
18185 if (!__privateGet(this, _info).fragmented && __privateGet(this, _info).fin) {
18186 websocketMessageReceived(this.ws, __privateGet(this, _info).binaryType, this.consumeFragments());
18187 }
18188 __privateSet(this, _state, parserStates.INFO);
18189 } else {
18190 __privateGet(this, _extensions).get("permessage-deflate").decompress(
18191 body,
18192 __privateGet(this, _info).fin,
18193 (error, data) => {
18194 if (error) {
18195 const code = error instanceof MessageSizeExceededError ? 1009 : 1007;
18196 failWebsocketConnectionWithCode(this.ws, code, error.message);
18197 return;
18198 }
18199 if (!this.writeFragments(data)) {
18200 return;
18201 }
18202 if (__privateGet(this, _maxPayloadSize) > 0 && __privateGet(this, _fragmentsBytes) > __privateGet(this, _maxPayloadSize)) {
18203 failWebsocketConnectionWithCode(this.ws, 1009, new MessageSizeExceededError().message);
18204 return;
18205 }
18206 if (!__privateGet(this, _info).fin) {
18207 __privateSet(this, _state, parserStates.INFO);
18208 __privateSet(this, _loop, true);
18209 this.run(callback);
18210 return;
18211 }
18212 websocketMessageReceived(this.ws, __privateGet(this, _info).binaryType, this.consumeFragments());

Callers 4

__privateAddFunction · 0.45
insertMethod · 0.45
cloneMethod · 0.45
sendMethod · 0.45

Calls 6

createFrameFunction · 0.70
__privateGetFunction · 0.70
__privateMethodFunction · 0.70
writeMethod · 0.45
pushMethod · 0.45
arrayBufferMethod · 0.45

Tested by

no test coverage detected