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.