family update

This commit is contained in:
lendry
2026-06-24 23:17:24 +03:00
parent 9727cf3f35
commit f2366a69a0
18 changed files with 1374 additions and 103 deletions

View File

@@ -59,6 +59,7 @@ func (h *Hub) Remove(ctx context.Context, userID string, conn *websocket.Conn) {
delete(h.connections, userID)
_ = h.redis.SRem(ctx, "ws:online_users", userID).Err()
_ = h.redis.Del(ctx, "ws:user:"+userID).Err()
_ = h.redis.Set(ctx, "ws:last_seen:"+userID, time.Now().UTC().Format(time.RFC3339), 0).Err()
}
}