resume

command
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

resume 示例:断线重连的在场状态还原。

演示 pkg/resume:客户端用 refresh token 重连 → 服务端换出 userID + 还在的流列表 → 客户端按列表自动重新 join。串起 pkg/token + pkg/presence。

流程:

/login       签发 dual token,模拟已加入 room1/party-a
/reconnect   用 refresh token 还原在场流列表
/remark      用新 sessionID 把流重新登记(MarkOnline)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL