// 通用消息结构 /** * 客户端 → 服务端(请求 / 操作) */ export interface ActionMessage { type: string sender?: string target?: string roomId?: string seq?: number status?: string trace_id?: string payload?: T } /** * 服务端 → 客户端(事件 / 推送) */ export interface ActionEvent { type: string target?: string roomId?: string seq?: number status?: string requestId?: string trace_id?: string payload?: T }