mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-16 15:01:03 +00:00
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
11 lines
334 B
Go
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) })
|
|
}
|