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

Function onError

packages/socket.io/lib/uws.ts:132–135  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

130 const destroyReadStream = () => !readStream.destroyed && readStream.destroy();
131
132 const onError = (error: Error) => {
133 destroyReadStream();
134 throw error;
135 };
136
137 const onDataChunk = (chunk: Buffer) => {
138 const arrayBufferChunk = toArrayBuffer(chunk);

Callers

nothing calls this directly

Calls 1

destroyReadStreamFunction · 0.85

Tested by

no test coverage detected