-
Notifications
You must be signed in to change notification settings - Fork 336
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
Client does not return without internet connection #369
Comments
I see, it returns null at the moment when there is no connection, or throws an exception if there is a server error |
I don't think it returns null. While testing it yesterday, it wouldn't return at all, so any watchers that were linked to the client wouldn't begin correctly and instead get stuck |
I tested it to understand your issue and it returns null if there is no connection final res = await client.connectUser(
User(id: userId),
userToken
);
print('res: $res'); I agree this is not the best behaviour, but at least it does not hang |
we added more specific errors, you can find the new implementation in the develop branch |
Client.connectUser does not work properly if there is no internet connection. It should return an error saying that there were connection issues, but it doesn't return anything at the moment
The text was updated successfully, but these errors were encountered: