At the time of creating this ticket, Twake Mail web updates its email view by listening to notification by Firebase Cloud Messaging (FCM). Per https://github.com/linagora/tmail-flutter/issues/1732, websocket will be integrated. All functionality of FCM for mobile must be kept intact, and FCM integrated source code should be refactored so that websocket can be add with ease.
Description
At the time of creating this ticket, Twake Mail web updates its email view by listening to notification by Firebase Cloud Messaging (FCM). Per https://github.com/linagora/tmail-flutter/issues/1732, websocket will be integrated. All functionality of FCM for mobile must be kept intact, and FCM integrated source code should be refactored so that websocket can be add with ease.
Implementation details
Sample code
```dart abstract class PushNotificationBaseController { const PushNotificationBaseController(); void consumeState(StreamDoD