你需要用 V5.8.6 或者 v5.9.0
#14869 Added the
connected_at
timestamp field to the$events/client_disconnected
event payload. This enhancement enables tracking the original connection session time for disconnected clients, preventing outdated disconnect events from overriding newer connection states.
这样 disconnected 事件里面有也有连接时间(connected_at),那你就可以判断他到底是和哪一个 connected 事件是一对了。