family update
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user