feat(docs): add simplified API documentation for chat messages

This commit is contained in:
2026-06-25 12:06:49 +08:00
parent 8d956bc95d
commit 0bff65dd32
2 changed files with 146 additions and 9 deletions
-9
View File
@@ -1,12 +1,3 @@
/**
* Chat 状态机:State 形状 + 初始值
*
* `wsConnected: boolean` 仅 VIP 会话期间有意义:
* - VIP + WS 已连 → 消息发送走 WS
* - 非 VIP / 游客 → 不连接 WS,消息走 HTTP
* - `ChatWebSocketConnected` 事件 → true
* - VIP 会话 exit → falseWS actor cleanup 时也会跑 exit
*/
import type { UiMessage } from "@/data/dto/chat";
export interface ChatState {