GetStream - Flutter - Connection already available for user

Viewed 191

Error facing in Flutter GetStream SDK.. GetStream is chatting SDK in which I am using messaging feature. I am facing issue with creating connection with the user.

Even if I change name of the user to anything, I still get the same error.

enter image description here

While the Log shows the following result. enter image description here

1 Answers

Stream Chat only supports one user connection at a time. You'll see it says "Connection already available..."

You first need to disconnect the current user, with:

await cle.disconnectUser();

Before calling connectUser again.

Related