feat: bind room tickets to member sessions and disconnect revoked sessions

This commit is contained in:
DiheChen committed 2026-11-09 21:24:32 +08:00
1 parent a85d7dac83
commit 848b66b6b2
47 files changed
+975 -165

No files matched your search

+1 -1
View File
@@ -367,7 +367,7 @@
{"name": "internal", "code": 1011, "description": "握手时发生内部错误"},
{"name": "serviceRestart", "code": 1012, "description": "服务端实例退出,或实例与 Redis 的订阅连接中断"},
{"name": "unavailable", "code": 1013, "description": "握手时服务暂时不可用"},
{"name": "unauthorized", "code": 4401, "description": "票据无效、用 API Key 握手,或房间设置、修改了密码"},
{"name": "unauthorized", "code": 4401, "description": "票据无效、用 API Key 握手、房间设置或修改了密码,或者票据所属的成员会话已被删除(退出登录、修改或重置账号密码)"},
{"name": "notFound", "code": 4404, "description": "房间不存在,或房间已关闭、被删除"},
{"name": "handshakeTimeout", "code": 4408, "description": "握手超时"},
{"name": "clientOutdated", "code": 4426, "description": "前端与服务端的协议版本不一致"},
+1 -1
View File
@@ -1500,7 +1500,7 @@
},
"info": {
"title": "Alisten",
"version": "eae091a3e1daf18c"
"version": "88c848e7b53dc1b8"
},
"openapi": "3.1.0",
"paths": {
+1 -1
View File
@@ -4,7 +4,7 @@ package protocol
import "encoding/json"
const Version = "eae091a3e1daf18c"
const Version = "88c848e7b53dc1b8"
type APIKey struct {
Key string `json:"key"`