mirror of https://github.com/usememos/memos.git
Add SSE event broadcasting for reaction changes so that when a user adds or removes a reaction on one device, all other open instances see the update in real-time. Backend: - Rename MemoEvent/MemoEventType to SSEEvent/SSEEventType for generality - Add reaction.upserted and reaction.deleted event types - Broadcast events from UpsertMemoReaction and DeleteMemoReaction, using the reaction's ContentID (memo name) as the event name Frontend: - Handle reaction.upserted and reaction.deleted SSE events by invalidating the affected memo detail cache and memo lists - Rename internal handler to handleSSEEvent to reflect broader scope Co-authored-by: milvasic <milvasic@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| docs | ||
| public | ||
| src | ||
| .gitignore | ||
| biome.json | ||
| components.json | ||
| index.html | ||
| package.json | ||
| pnpm-lock.yaml | ||
| tsconfig.json | ||
| vite.config.mts | ||