MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / send

Method send

packages/codex-native-api/src/codex_app_client.ts:1224–1229  ·  view source on GitHub ↗
(payload: any)

Source from the content-addressed store, hash-verified

1222 }
1223
1224 send(payload: any): void {
1225 if (!this.child?.stdin?.writable) {
1226 throw new Error('Codex app-server stdio is not open');
1227 }
1228 this.child.stdin.write(`${JSON.stringify(payload)}\n`);
1229 }
1230
1231 handleMessage(raw: string): void {
1232 let message;

Callers 3

respondToApprovalMethod · 0.95
initializeMethod · 0.95
requestMethod · 0.95

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected