Skip to content

Add Web Push notifications alongside new_msg delivery#22

Merged
markmnl merged 1 commit into
mainfrom
pwa
May 17, 2026
Merged

Add Web Push notifications alongside new_msg delivery#22
markmnl merged 1 commit into
mainfrom
pwa

Conversation

@markmnl

@markmnl markmnl commented May 17, 2026

Copy link
Copy Markdown
Owner

Register browser push subscriptions via JWT-authenticated POST/DELETE /fmsg/push/subscribe (keyed by user address + endpoint), and dispatch an encrypted VAPID Web Push for every new_msg notification so recipients are notified without a live WebSocket. Dead subscriptions (404/410) are pruned automatically.

Push is enabled only when FMSG_VAPID_PUBLIC_KEY, FMSG_VAPID_PRIVATE_KEY and FMSG_VAPID_SUBJECT are all set.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant