feat: socket connect on app start

This commit is contained in:
cogwheel0
2025-09-02 21:19:07 +05:30
parent 3c082ffc9e
commit 9f546f203e
4 changed files with 129 additions and 82 deletions

View File

@@ -204,6 +204,9 @@ final socketServiceProvider = Provider<SocketService?>((ref) {
// best-effort connect; errors handled internally
// ignore unawaited_futures
s.connect();
ref.onDispose(() {
try { s.dispose(); } catch (_) {}
});
return s;
},
orElse: () => null,