Uses the official Socket.IO-Client-Swift, maintained by the socket.io team. Works on macOS, iOS, watchOS, tvOS, and visionOS.
LIVERATES_KEY=trial swift runTo drop this into an Xcode project, add the package dependency https://github.com/socketio/socket.io-client-swift (branch: default, version: 16.1.1 or later) and copy Sources/LiveRatesStreamingExample/main.swift into your target.