MCPcopy Create free account
hub / github.com/ShipSecAI/studio / close

Method close

frontend/src/utils/sse-client.ts:100–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 }
99
100 close(): void {
101 if (this.readyState === EventSource.CLOSED) {
102 return;
103 }
104
105 this.readyState = FetchEventSource.CLOSED;
106 this.controller?.abort();
107 this.reader?.cancel().catch(() => {
108 // Ignore cancel errors
109 });
110 this.reader = null;
111 this.controller = null;
112 }
113
114 private async connect(headers?: Record<string, string>): Promise<void> {
115 if (this.readyState === EventSource.CLOSED) {

Callers 15

useTerminalStreamFunction · 0.45
connectFunction · 0.45
handleCompleteFunction · 0.45
onModuleDestroyMethod · 0.45
cleanupRunMethod · 0.45
generateOpenApiFunction · 0.45
mainFunction · 0.45
getAvailablePortFunction · 0.45

Calls 1

cancelMethod · 0.80

Tested by

no test coverage detected