MCPcopy Create free account
hub / github.com/Noumena-Network/code / cancelSession

Method cancelSession

src/remote/RemoteSessionManager.ts:294–297  ·  view source on GitHub ↗

* Send an interrupt signal to cancel the current request on the remote session

()

Source from the content-addressed store, hash-verified

292 * Send an interrupt signal to cancel the current request on the remote session
293 */
294 cancelSession(): void {
295 logForDebugging('[RemoteSessionManager] Sending interrupt signal')
296 this.websocket?.sendControlRequest({ subtype: 'interrupt' })
297 }
298
299 /**
300 * Get the session ID

Callers 1

useRemoteSessionFunction · 0.80

Calls 2

sendControlRequestMethod · 0.80
logForDebuggingFunction · 0.50

Tested by

no test coverage detected