feat(llc, persistence): add support for open and close persistence via client.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2023-06-02 12:24:04 +05:30
committed by xsahil03x
parent 156c0a9aba
commit 6b29630a64
6 changed files with 103 additions and 53 deletions
@@ -17,6 +17,11 @@ abstract class ChatPersistenceClient {
/// Whether the connection is established.
bool get isConnected;
/// The current user id to which the client is connected.
///
/// Returns `null` if the client is not connected.
String? get userId;
/// Creates a new connection to the client
Future<void> connect(String userId);