Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
onError
Function · 0.85
Calls
1
destroy
Method · 0.45
Tested by
no test coverage detected