← 教程列表
news

Application-Level WebSocket Messages

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 8 阅读

When a TEXT frame arrives from a client: 1. Parse as JSON. If parsing fails, log to stderr and continue. 2. Log to stdout as `{ source: 'user-event', ...event }`. 3. If the event contains a `choice` property, append the JSON to `SCREEN_DIR/.events` (one line per event).

← 返回教程列表 AI8899 · 内容仅供学习参考