TF-3157 Implement web socket push

This commit is contained in:
DatDang
2024-09-23 13:38:45 +07:00
committed by Dat H. Pham
parent ee776311c7
commit c4d0c27603
24 changed files with 773 additions and 131 deletions
@@ -0,0 +1,21 @@
# 53. Web socket data synchronization
Date: 2024-11-10
## Status
Accepted
## Context
- Currently Twake Mail web use Firebase Cloud Messaging to sync data on real time
- JMAP already implemented web socket push, which is more optimized for web
## Decision
- Web socket is implemented for real time update data for Twake Mail web
- Service worker is implemented for background tasks, helping web socket working in background
## Consequences
- Twake Mail web now no longer depends on Firebase Cloud Messaging, using web socket to update users' latest data