sse für live collab eingebaut
This commit is contained in:
@@ -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 };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user