Breaking ⚠️
From now on client.connectUser()
should be awaited #747. All instances of connectUser()
should be changed to:
await connectUser()
// or
connectUser().then()
// ....
// queryChannels and other methods should be called after promise is resolved
The behavior is now improved for poor connections and connectUser
retries to establish the connection before throwing an error. Make sure to handle the failure gracefully and do not proceed to query channels or other methods until connectUser
resolves.