MCPcopy
hub / github.com/callstack/agent-device / emit

Method emit

src/mcp/server.ts:155–159  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

153 }
154
155 private emit(raw: string): void {
156 // JSON.parse failures propagate to the stdin handler as a -32700 parse error.
157 // The decoded value stays untyped here; handleMcpPayload validates it at the boundary.
158 this.sink(JSON.parse(raw) as unknown);
159 }
160}
161
162function responseArray(response: JsonRpcResponse | null): JsonRpcResponse[] {

Callers 15

pushMethod · 0.95
makeMockAdbProcessFunction · 0.80
makeMockChildFunction · 0.80
emitJsonRpcResultFunction · 0.80
mockEventHttpRequestFunction · 0.80
respondToHealthcheckFunction · 0.80
makeMockChildFunction · 0.80

Calls 1

parseMethod · 0.45

Tested by 10

makeMockChildFunction · 0.64
emitJsonRpcResultFunction · 0.64
mockEventHttpRequestFunction · 0.64
respondToHealthcheckFunction · 0.64
makeMockChildFunction · 0.64
createMockSocketFunction · 0.64
emitExitMethod · 0.64
emitExitMethod · 0.64