Files
gitea/services
Oleks 3c831efc0c feat(project): add SSE event bus and publish helpers
New services/project_events package marshals typed payloads to JSON,
wraps them in SSE events named project-board.{project_id}, and fans
them out via the eventsource manager to every connected user that
has read access to the project. Each Publish* helper runs the
broadcast in a goroutine so request handlers stay responsive.

Includes WithSessionTag / SessionTagFromContext for propagating an
X-Session-Tag value down to the publisher (so the originating browser
tab can suppress its own echo).

Unit tests cover event-name format, payload JSON shape, session-tag
propagation, the connected-uids access filter, and the broadcast
fan-out path.
2026-05-15 21:45:28 +03:00
..
2026-04-08 01:17:05 +08:00
2025-10-19 00:37:50 +08:00