https://github.com/basthomas/pusherswiftcrash
https://github.com/basthomas/pusherswiftcrash
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/basthomas/pusherswiftcrash
- Owner: BasThomas
- Created: 2016-11-21T12:20:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-21T12:22:58.000Z (over 9 years ago)
- Last Synced: 2025-02-01T12:26:56.249Z (over 1 year ago)
- Language: Swift
- Size: 73.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PusherSwiftCrash
This example project crashes the `PusherSwift` pod.
Steps to reproduce:
- Create a new iOS app (single view)
- `pod init`
- Add the pod to your podfile
- `pod install`
- Put the following code in the `viewDidLoad`:
```swift
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let pusher = Pusher(key: "", options: PusherClientOptions(host: .cluster("")))
let channel = pusher.subscribe("session-status-1")
let _ = channel.bind(eventName: "App\\Events\\SessionStatusUpdated") {
guard let data = $0 as? [String: Any], let message = data["message"] as? String else { return }
print(message)
}
pusher.connect()
}
```
- The app now crashes