Sayed M. Idrees
Sayed M. Idrees

Reputation: 1408

GetStream - Flutter - Connection already available for user

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

Upvotes: 2

Views: 723

Answers (1)

Gordon Hayes
Gordon Hayes

Reputation: 271

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.

Upvotes: 2

Related Questions