INNER CODE UNIT · TypeScript
complete
enisdenjo/graphql-sse · src/client.ts:666
complete = null; // completed by the server
return control.abort();
} catch (err) {
if (control.signal.aborted) return await complete?.();
// all non-network errors are worth reporting immediately
if (!(err instanceof NetworkError)) {
control.abort(); // TODO: tests for making sure the control's aborted
throw err;
}
// was a network error, get rid of the current connection to ensure retries
// but only if the client is running in lazy mode (otherwise the non-lazy lock will get rid of the connection)
if (lazy) {
conn = undefined;
}