后端改进: - SessionEventBroadcaster: 重连时自动关闭旧 channel 防止内存泄漏 - MessageBroker: 重连时关闭旧的 party/session channel - SubscribeMessages: 订阅时自动发送数据库中的 pending 消息 客户端改进: - GrpcClient: 添加自动重连机制(指数退避,最多10次) - GrpcClient: 断开/重连/失败事件通知前端 - TSSHandler: 消息缓冲机制,进程启动前缓存收到的消息 - TSSHandler: 客户端本地消息去重,防止重连后重复处理 - Database: 添加 processed_messages 表和相关操作方法 - Main: Keygen 幂等性保护,防止重复触发 - Main: 会话事件缓存,解决前端订阅时序问题 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| memory | ||
| postgres | ||
| rabbitmq | ||