MCPcopy Create free account
hub / github.com/nodejs/node / stopSending

Method stopSending

lib/internal/quic/quic.js:2413–2417  ·  view source on GitHub ↗

* Tells the peer to stop sending data for this stream. The optional error * code will be sent to the peer as part of the request. If the stream is * already destroyed, this is a no-op. No acknowledgement of this action * will be provided. * @param {number|bigint} code

(code = 0n)

Source from the content-addressed store, hash-verified

2411 * @param {number|bigint} code
2412 */
2413 stopSending(code = 0n) {
2414 assertIsQuicStream(this);
2415 if (this.destroyed) return;
2416 this.#handle.stopSending(BigInt(code));
2417 }
2418
2419 /**
2420 * Tells the peer that this end will not send any more data on this stream.

Calls

no outgoing calls

Tested by

no test coverage detected