Files
Gitea/services/websocket/logout.go
T
silverwind b60da6d876 enhance(websocket): improve client synchronization (#38847) (#40340)
Backport of https://github.com/go-gitea/gitea/pull/38847, which fixes
the stopwatch push flake in
https://github.com/go-gitea/gitea/actions/runs/43200377380/job/131122930118.

The stopwatch e2e test keeps its v28 flow, since main reworked it in a
separate change.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-12 14:00:15 +00:00

11 lines
334 B
Go

// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package websocket
const eventLogout = "logout" // keep in sync with web_src/js/types.ts
func PublishLogout(userID int64, sessionID string) {
publishUserEvent(userID, func() []byte { return makeEventMessage(eventLogout, sessionID, nil) })
}