MCPcopy
hub / github.com/nodejs/undici / _write

Method _write

lib/web/websocket/receiver.js:70–76  ·  view source on GitHub ↗

* @param {Buffer} chunk * @param {() => void} callback

(chunk, _, callback)

Source from the content-addressed store, hash-verified

68 * @param {() => void} callback
69 */
70 _write (chunk, _, callback) {
71 this.#buffers.push(chunk)
72 this.#byteOffset += chunk.length
73 this.#loop = true
74
75 this.run(callback)
76 }
77
78 #validatePayloadLength () {
79 if (

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected