feat(sse): per-connection filtering with user and workstation context #171

Merged
forbes merged 1 commits from feat/sse-per-connection-filtering into main 2026-03-01 16:05:35 +00:00
Owner
  • Extend sseClient with userID, workstationID, and item filter set
  • Update Subscribe() to accept userID and workstationID params
  • Add WatchItem/UnwatchItem/IsWatchingItem methods on sseClient
  • Add PublishToItem, PublishToWorkstation, PublishToUser targeted delivery
  • Targeted events get IDs but skip history ring buffer (real-time only)
  • Update HandleEvents to pass auth user ID and workstation_id query param
  • Touch workstation last_seen on SSE connect
  • Existing Publish() broadcast unchanged; all current callers unaffected
  • Add 5 new tests for targeted delivery and item watch lifecycle

Closes #162

- Extend sseClient with userID, workstationID, and item filter set - Update Subscribe() to accept userID and workstationID params - Add WatchItem/UnwatchItem/IsWatchingItem methods on sseClient - Add PublishToItem, PublishToWorkstation, PublishToUser targeted delivery - Targeted events get IDs but skip history ring buffer (real-time only) - Update HandleEvents to pass auth user ID and workstation_id query param - Touch workstation last_seen on SSE connect - Existing Publish() broadcast unchanged; all current callers unaffected - Add 5 new tests for targeted delivery and item watch lifecycle Closes #162
forbes added 1 commit 2026-03-01 16:04:18 +00:00
- Extend sseClient with userID, workstationID, and item filter set
- Update Subscribe() to accept userID and workstationID params
- Add WatchItem/UnwatchItem/IsWatchingItem methods on sseClient
- Add PublishToItem, PublishToWorkstation, PublishToUser targeted delivery
- Targeted events get IDs but skip history ring buffer (real-time only)
- Update HandleEvents to pass auth user ID and workstation_id query param
- Touch workstation last_seen on SSE connect
- Existing Publish() broadcast unchanged; all current callers unaffected
- Add 5 new tests for targeted delivery and item watch lifecycle

Closes #162
forbes merged commit 82cdd221ef into main 2026-03-01 16:05:35 +00:00
forbes deleted branch feat/sse-per-connection-filtering 2026-03-01 16:05:36 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/silo#171