sse für live collab eingebaut

This commit is contained in:
Bastian Wagner
2026-06-10 14:35:18 +02:00
parent 93a91c7bf6
commit 67b5fb8532
9 changed files with 507 additions and 17 deletions

View File

@@ -54,3 +54,19 @@ export interface UpdateListItemRequest {
required?: boolean;
checked?: boolean;
}
// Wire contract for /api/lists/events. Keep this in sync with the API
// ListRealtimeEvent type; consumers should ignore unknown event types.
export type ListRealtimeEvent =
| {
type: 'list.snapshot';
data: UserList;
}
| {
type: 'list.deleted';
data: { listId: string };
}
| {
type: 'heartbeat';
data: { at: string };
};