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,14 @@
import 'package:jmap_dart_client/jmap/account_id.dart';
import 'package:jmap_dart_client/jmap/core/session/session.dart';
import 'package:tmail_ui_user/features/push_notification/data/datasource/web_socket_datasource.dart';
import 'package:tmail_ui_user/features/push_notification/domain/repository/web_socket_repository.dart';
class WebSocketRepositoryImpl implements WebSocketRepository {
final WebSocketDatasource _webSocketDatasource;
WebSocketRepositoryImpl(this._webSocketDatasource);
@override
Stream getWebSocketChannel(Session session, AccountId accountId)
=> _webSocketDatasource.getWebSocketChannel(session, accountId);
}