From 1637d642de2a9cb29596c9f8e9c6163fdcf1bb38 Mon Sep 17 00:00:00 2001 From: wyc <1104749580@qq.com> Date: Mon, 27 Jul 2026 16:16:03 +0800 Subject: [PATCH] websocket --- SSR/Msg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SSR/Msg.h b/SSR/Msg.h index 027a21d..3d9fa91 100644 --- a/SSR/Msg.h +++ b/SSR/Msg.h @@ -256,6 +256,10 @@ struct POS_List { std::lock_guard g(mtx.mtx); return count == 0; } + std::uint64_t current_seq() { + std::lock_guard g(mtx.mtx); + return seq; + } std::optional last() { std::lock_guard g(mtx.mtx); if (count == 0) return std::nullopt;