command
Version:
v0.6.3
Opens a new window with list of versions in this module.
Published: Aug 10, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
resume 示例:断线重连的在场状态还原。
演示 pkg/resume:客户端用 refresh token 重连 → 服务端换出 userID + 还在的流列表
→ 客户端按列表自动重新 join。串起 pkg/token + pkg/presence。
流程:
/login 签发 dual token,模拟已加入 room1/party-a
/reconnect 用 refresh token 还原在场流列表
/remark 用新 sessionID 把流重新登记(MarkOnline)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.