What can I do if my Channels instance is deallocated?

When developing using our Swift libraries you might experience the following error:

Your Pusher instance has probably become deallocated. See https://github.com/pusher/pusher-websocket-swift/issues/109 for more information

 

This error is triggered when your code does not maintain a strong reference to your Pusher object. Maintaining a reference will prevent the object being deallocated and therefore stop the crash. 

 

Was this article helpful?
0 out of 0 found this helpful
Haven't found what you were looking for?
Submit a ticket