0

I'm building an app using the Twilio IP Messaging SDK for iOS (actually using react-native, but have a bridge that uses Obj-C for the Twilio library). The app has the concept of "accounts", so once someone logs out I shut down the Twilio IP Messaging Client by calling the shutdown() method. This seems to work and I get the following output (not showing all, just the end):

https://gist.github.com/Baisang/1bb975c353772bb99a95fbcf4a4df87a

This seems to indicate a successful shutdown. However, when I log back in (which restarts the client by creating a new one?), I start getting a lot of poco exceptions and invalid socket errors.

https://gist.github.com/Baisang/a73fdc2f20db9a5ce1f0935cfb862e45

This continues and the client is never able to truly connect to Twilio as a result. Would like some insight into what may be causing this issue. For reference, the Twilio code I am using is here: https://github.com/ccm-innovation/react-native-twilio-ip-messaging/blob/master/RCTTwilioIPMessaging/RCTTwilioIPMessagingClient.m

4

0 回答 0