MCPcopy Create free account
hub / github.com/tiann/hapi / sendSessionDeath

Method sendSessionDeath

cli/src/api/apiSession.ts:606–609  ·  view source on GitHub ↗
(reason?: SessionEndReason)

Source from the content-addressed store, hash-verified

604 }
605
606 sendSessionDeath(reason?: SessionEndReason): void {
607 void cleanupUploadDir(this.sessionId)
608 this.socket.emit('session-end', { sid: this.sessionId, time: Date.now(), reason })
609 }
610
611 updateMetadata(handler: (metadata: Metadata) => Metadata): void {
612 this.metadataLock.inLock(async () => {

Callers 2

archiveAndCloseFunction · 0.80
runAgentSessionFunction · 0.80

Calls 2

cleanupUploadDirFunction · 0.90
emitMethod · 0.45

Tested by

no test coverage detected