MCPcopy Index your code
hub / github.com/nodejs/node / writeFragments

Method writeFragments

deps/undici/undici.js:15651–15659  ·  view source on GitHub ↗
(fragment)

Source from the content-addressed store, hash-verified

15649 }
15650 }
15651 writeFragments(fragment) {
15652 if (this.#maxFragments > 0 && this.#fragments.length === this.#maxFragments) {
15653 failWebsocketConnection(this.#handler, 1008, "Too many message fragments");
15654 return false;
15655 }
15656 this.#fragmentsBytes += fragment.length;
15657 this.#fragments.push(fragment);
15658 return true;
15659 }
15660 consumeFragments() {
15661 const fragments = this.#fragments;
15662 if (fragments.length === 1) {

Callers 1

runMethod · 0.45

Calls 2

failWebsocketConnectionFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected