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

Method sendControlResponse

src/remote/SessionsWebSocket.ts:327–335  ·  view source on GitHub ↗

* Send a control response back to the session

(response: SDKControlResponse)

Source from the content-addressed store, hash-verified

325 * Send a control response back to the session
326 */
327 sendControlResponse(response: SDKControlResponse): void {
328 if (!this.ws || this.state !== 'connected') {
329 logError(new Error('[SessionsWebSocket] Cannot send: not connected'))
330 return
331 }
332
333 logForDebugging('[SessionsWebSocket] Sending control response')
334 this.ws.send(jsonStringify(response))
335 }
336
337 /**
338 * Send a control request to the session (e.g., interrupt)

Callers 3

handleControlRequestMethod · 0.80
sendResponseFunction · 0.80

Calls 4

jsonStringifyFunction · 0.85
logErrorFunction · 0.50
logForDebuggingFunction · 0.50
sendMethod · 0.45

Tested by

no test coverage detected