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

Function onError

lib/uws.ts:130–133  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

destroyReadStreamFunction · 0.85

Tested by

no test coverage detected