MCPcopy Create free account
hub / github.com/tiann/hapi / writePayload

Method writePayload

cli/src/codex/codexAppServerClient.ts:479–482  ·  view source on GitHub ↗
(payload: JsonRpcLiteRequest | JsonRpcLiteNotification | JsonRpcLiteResponse)

Source from the content-addressed store, hash-verified

477 }
478
479 private writePayload(payload: JsonRpcLiteRequest | JsonRpcLiteNotification | JsonRpcLiteResponse): void {
480 const serialized = JSON.stringify(payload);
481 this.process?.stdin.write(`${serialized}\n`);
482 }
483
484 private resetParserState(): void {
485 this.buffer = '';

Callers 3

sendRequestMethod · 0.95
sendNotificationMethod · 0.95
handleIncomingRequestMethod · 0.95

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected