A reactive WebSocket demo.
- Cocoapods
- Xcode with Swift 3
pod install
open Bio.xcworkspace
- Tap a car to start it
- Tap again to stop it
Since the WebSocket only supports stopping the last car started, the client automatically stops the last started car when a new one is started. Without this constraint, it would be impossible to stop a car if we had started another car while it was still running.