MCPcopy Index your code
hub / github.com/codeaashu/claude-code / close

Method close

src/cli/transports/ccrClient.ts:982–997  ·  view source on GitHub ↗

Clean up uploaders and timers.

()

Source from the content-addressed store, hash-verified

980
981 /** Clean up uploaders and timers. */
982 close(): void {
983 this.closed = true
984 this.stopHeartbeat()
985 unregisterSessionActivityCallback()
986 if (this.streamEventTimer) {
987 clearTimeout(this.streamEventTimer)
988 this.streamEventTimer = null
989 }
990 this.streamEventBuffer = []
991 this.streamTextAccumulator.byMessage.clear()
992 this.streamTextAccumulator.scopeToMessage.clear()
993 this.workerState.close()
994 this.eventUploader.close()
995 this.internalEventUploader.close()
996 this.deliveryUploader.close()
997 }
998}
999
1000

Callers 1

createV2ReplTransportFunction · 0.95

Calls 3

stopHeartbeatMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected