SessionNotice
咨询通报:turn.error{recoverable:true} 与 session.events_dropped(contract-v0.27,RFC-RF-1)的归约形——
kernel 的咨询帧(压缩熔断暂停 / sdk.notice 弃用提示 / sdk.persistence 落卷失败 / serve store_commit_failed …)
与 sdk 事件积压溢出通报都不是失败,归 notices 而不污染 lastError。字段恒自 wire 派生,不发明词:
- seq / at = 事件包络 seq / ts;
- code = errorKind,errorKind 缺席回落 scope;
session.events_dropped归约 code = 事件 type; - message =
turn.error.message;零文本事件(session.events_dropped)不落键——宿主按code渲染、message仅作兜底(0.14.0 起可选,DEC-RF-20 QA-RFC-02 (b)); - detail =
turn.error.detail透传(首个取值套餐配额{ scope: 'plan' })/session.events_dropped载荷去 type、scope 后的余键({ droppedCount, reason, droppedBytes?, firstDroppedSeq?, lastDroppedSeq?, maxEvents?, maxBytes? }); 缺席即键缺席。
readonly at: number;readonly code: string;detail?
Section titled “detail?”readonly optional detail?: unknown;message?
Section titled “message?”readonly optional message?: string;readonly scope: string;readonly seq: number;本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。