chatkit-client-js icon indicating copy to clipboard operation
chatkit-client-js copied to clipboard

Error subscribing to a room after re-connecting to internet

Open johanquiroga opened this issue 5 years ago • 0 comments

I'm experiencing an issue when subscribing to a room, here is the flow I'm testing

  1. Open the app without internet connection: Here I get the expected errors from Chatkit.ChatManager and Chatkit.TokenProvider.
  2. Reconnect the app to internet: Here I turn on again the wifi in my computer so the simulator reconnects and makes a successful connection with Chatkit.ChatManager.
  3. Navigate to a chat: Then I go to a chat and when it's mounted the subscription to chatkit is attempted. Here is where I'm getting the error

image

If I attempt to send a message or fetch older messages it's done with no problems, only the subscription is failing after that flow.

The state of a chat inside roomSubscriptions is this (in case it helps):

image

Here is a link to a video showing the flow Im' describing.

Device: Any iPhone Simulator OS: iOS 12 @pusher/chatkit-client version: 1.5.0 react-native version: 0.58.6 react version: 16.6.3

johanquiroga avatar Apr 30 '19 17:04 johanquiroga