MCPcopy Create free account
hub / github.com/socketio/socket.io / destroyReadStream

Function destroyReadStream

lib/uws.ts:128–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

onErrorFunction · 0.85

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected