MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / forwardResponse

Function forwardResponse

local-cli/server/util/messageSocket.js:159–166  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

157 }
158
159 function forwardResponse(message) {
160 getClientWs(message.id.clientId).send(JSON.stringify({
161 version: PROTOCOL_VERSION,
162 result: message.result,
163 error: message.error,
164 id: message.id.requestId,
165 }));
166 }
167
168 clients.set(clientId, clientWs);
169 clientWs.onclose =

Callers 1

attachToServerFunction · 0.85

Calls 2

getClientWsFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…