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

Function sendControlRequest

src/bridge/replBridge.ts:1796–1808  ·  view source on GitHub ↗
(request: SDKControlRequest)

Source from the content-addressed store, hash-verified

1794 void transport.writeBatch(events)
1795 },
1796 sendControlRequest(request: SDKControlRequest) {
1797 if (!transport) {
1798 logForDebugging(
1799 '[bridge:repl] Transport not configured, skipping control_request',
1800 )
1801 return
1802 }
1803 const event = { ...request, session_id: currentSessionId }
1804 void transport.write(event)
1805 logForDebugging(
1806 `[bridge:repl] Sent control_request request_id=${request.request_id}`,
1807 )
1808 },
1809 sendControlResponse(response: SDKControlResponse) {
1810 if (!transport) {
1811 logForDebugging(

Callers

nothing calls this directly

Calls 2

logForDebuggingFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected