[Problem/Question]
To control the number of simultaneous connections, we would like to execute the disconnect() method while the chat screen is not open.
However, in the current SDK implementation, the disconnect() method can only be used as a “strong” disconnect with a true logout argument.
@override
Future<void> disconnect({required bool logout}) async {
sbLog.i(StackTrace.current);
await chat.connectionManager.doDisconnect(clear: logout, logout: logout);
}
The method that is executed when the app enters the background state is a “weak” disconnect() with a logout argument of false, allowing the use of the reconnect() method.
Is there any reason why “weak” disconnect() cannot be used when the app is in the foreground state? Are there any plans for modification?
Translated with DeepL.com (free version)
// If problem, please fill out the below. If question, please delete.
[SDK Version]
sendbird_chat_sdk 4.2.30
[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.
[Frequency]
// How frequently is this issue occurring?
[Current impact]
// How is this currently impacting your implementation?