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

Method onAborted

packages/engine.io/lib/userver.ts:374–382  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

372 }
373
374 public onAborted(fn) {
375 if (this.isAborted) return;
376
377 this.res.onAborted(() => {
378 // Any attempt to use the UWS response object after abort will throw!
379 this.isAborted = true;
380 fn();
381 });
382 }
383
384 public cork(fn) {
385 if (this.isAborted) return;

Callers 4

prepareMethod · 0.80
onPollRequestMethod · 0.80
onDataRequestMethod · 0.80
serveFileFunction · 0.80

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected