Commit d2e1de0
committed
feat: add WebPush support for notifications and implement rate limiting
- Added WebPush subscription keys (webPushP256dh, webPushAuth) to device schema and GraphQL types.
- Updated registerDevice mutation to require WebPush keys for web platform.
- Enhanced notification sending logic to handle WebPush messages with proper payload construction.
- Implemented a scheduler for processing scheduled notifications.
- Introduced a worker for handling notification jobs with retry logic.
- Added rate limiting middleware for GraphQL endpoint.
- Created utility functions for Redis connection and rate limiting.
- Established a notification queue using BullMQ for managing notification jobs.1 parent 71adf82 commit d2e1de0
File tree
32 files changed
+2325
-165
lines changed- app
- components
- layouts
- pages
- public
- sdk/src
- server
- database
- migrations
- meta
- schema
- graphql
- devices
- mutation
- loaders
- notifications/mutation
- middleware
- plugins
- providers
- queues
- utils
- workers
32 files changed
+2325
-165
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 | | |
24 | 35 | | |
25 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
66 | 73 | | |
67 | 74 | | |
68 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
0 commit comments