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

Method run

github-actions/bazel/configure-remote/configure-remote.js:17846–17998  ·  view source on GitHub ↗

* Runs whenever a new chunk is received. * Callback is called whenever there are no more chunks buffering, * or not enough bytes are buffered to parse.

(callback)

Source from the content-addressed store, hash-verified

17844 __privateSet(this, _inflate, null);
17845 return;
17846 }
17847 __privateGet(this, _inflate)[kBuffer].push(data);
17848 });
17849 __privateGet(this, _inflate).on("error", (err) => {
17850 __privateSet(this, _inflate, null);
17851 callback(err);
17852 });
17853 }
17854 __privateGet(this, _inflate).write(chunk);
17855 if (fin) {
17856 __privateGet(this, _inflate).write(tail);
17857 }
17858 __privateGet(this, _inflate).flush(() => {
17859 if (!__privateGet(this, _inflate)) {
17860 return;
17861 }
17862 const full = Buffer.concat(__privateGet(this, _inflate)[kBuffer], __privateGet(this, _inflate)[kLength]);
17863 __privateGet(this, _inflate)[kBuffer].length = 0;
17864 __privateGet(this, _inflate)[kLength] = 0;
17865 callback(null, full);
17866 });
17867 }
17868 };
17869 _inflate = new WeakMap();
17870 _options = new WeakMap();
17871 _maxPayloadSize = new WeakMap();
17872 module.exports = { PerMessageDeflate };
17873 }
17874 });
17875
17876 //
17877 var require_receiver = __commonJS({
17878 ""(exports, module) {
17879 "use strict";
17880 var { Writable } = __require("stream");
17881 var assert = __require("assert");
17882 var { parserStates, opcodes, states, emptyBuffer, sentCloseFrameState } = require_constants5();
17883 var { kReadyState, kSentClose, kResponse, kReceivedClose } = require_symbols5();
17884 var { channels } = require_diagnostics();
17885 var {
17886 isValidStatusCode,
17887 isValidOpcode,
17888 failWebsocketConnection,
17889 websocketMessageReceived,
17890 utf8Decode,
17891 isControlFrame,
17892 isTextBinaryFrame,
17893 isContinuationFrame
17894 } = require_util7();
17895 var { WebsocketFrameSend } = require_frame();
17896 var { closeWebSocketConnection } = require_connection();
17897 var { PerMessageDeflate } = require_permessage_deflate();
17898 var { MessageSizeExceededError } = require_errors();
17899 function failWebsocketConnectionWithCode(ws, code, reason) {
17900 closeWebSocketConnection(ws, code, reason, Buffer.byteLength(reason));
17901 failWebsocketConnection(ws, reason);
17902 }
17903 var _buffers, _fragmentsBytes, _byteOffset, _loop, _state, _info, _fragments, _extensions, _maxFragments, _maxPayloadSize, _validatePayloadLength, validatePayloadLength_fn;

Callers 1

_writeMethod · 0.45

Calls 15

__privateGetFunction · 0.70
isValidOpcodeFunction · 0.70
failWebsocketConnectionFunction · 0.70
isTextBinaryFrameFunction · 0.70
isControlFrameFunction · 0.70
isContinuationFrameFunction · 0.70
__privateSetFunction · 0.70
__privateMethodFunction · 0.70
websocketMessageReceivedFunction · 0.70
consumeMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected