TwpHeartbeatResult
이 콘텐츠는 아직 번역되지 않았습니다.
POST /t1/heartbeat 一次的解析结果。 features 与 bundleEtag 两键彼此独立解析:任一缺席/坏类型只让自己回 undefined。
archived?
Section titled “archived?”optional archived?: { sessionId: string | undefined;};HTTP 410 信封 { error: { code: 'session_archived', detail: { sessionId } } } —— 平台已归档
本次心跳携带的会话(DELETE /t1/sessions/:id / 租约过期)。sessionId = 信封 detail 值,缺席回落
请求携带的 id。消费方:停该会话心跳、不重试、下轮 exchange 开新会话。非 410 / 非该码 = 缺席。
sessionId
Section titled “sessionId”sessionId: string | undefined;bundleEtag
Section titled “bundleEtag”bundleEtag: string | undefined;平台此刻该 App GET /t1/config 的 ETag(与 /t1/config 响应头同一计算函数)。
缺席(旧平台)/ 非字符串 / 空串 = undefined → 消费方不动。
features
Section titled “features”features: readonly string[] | undefined;TWP 能力串;失败 / 缺席 / 非数组 = undefined(门全关同现状)
이 페이지가 도움이 되었나요?
피드백 감사합니다. 이 문서를 계속 개선하겠습니다.