Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CubeChatConnection.instance.login takes 5 to 6 seconds #47

Closed
wrteam-priyansh opened this issue Dec 10, 2020 · 2 comments
Closed

CubeChatConnection.instance.login takes 5 to 6 seconds #47

wrteam-priyansh opened this issue Dec 10, 2020 · 2 comments

Comments

@wrteam-priyansh
Copy link

No description provided.

@TatankaConCube
Copy link
Contributor

there topic about your question

@shivanijha002
Copy link

CubeChatConnection.instance.login is taking 6-15 seconds for me even with 100mbps internet connectivity. This is experienced by all of my app user. I am getting negative feedback of app just because of this slowness. Kindly help to optimize login experience.

Below is the code snippet used:
await createSession(user).then(
(cubeSession) async {
if (!CubeSessionManager.instance.isActiveSessionValid()) {
print('Session Invalid');
}
else {
if (CubeChatConnection.instance.chatConnectionState !=
CubeChatConnectionState.Ready) {
print("Log: Login start" + DateTime.now().toString());
await CubeChatConnection.instance
.login(user1)
.then((cubeUser) async {
print("Log: Login end" + DateTime.now().toString());
print(cubeUser);
}).catchError((error) {
print("Login error $error");
});
}
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants