MCPcopy
hub / github.com/socketio/socket.io / destroyReadStream

Function destroyReadStream

packages/socket.io/lib/uws.ts:130–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 const { size } = statSync(filepath);
129 const readStream = createReadStream(filepath);
130 const destroyReadStream = () => !readStream.destroyed && readStream.destroy();
131
132 const onError = (error: Error) => {
133 destroyReadStream();

Callers 1

onErrorFunction · 0.85

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected