MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / onConnect

Function onConnect

out/cli.cjs:60689–60697  ·  view source on GitHub ↗
(abort)

Source from the content-addressed store, hash-verified

60687 body: fetchParams.controller.dispatcher.isMockActive ? request3.body && (request3.body.source || request3.body.stream) : body,
60688 headers: request3.headersList.entries,
60689 maxRedirections: 0,
60690 upgrade: request3.mode === "websocket" ? "websocket" : void 0
60691 },
60692 {
60693 body: null,
60694 abort: null,
60695 onConnect(abort) {
60696 const { connection } = fetchParams.controller;
60697 if (connection.destroyed) {
60698 abort(new DOMException3("The operation was aborted.", "AbortError"));
60699 } else {
60700 fetchParams.controller.on("terminated", abort);

Callers

nothing calls this directly

Calls 2

abortFunction · 0.85
onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…