Official
Mobile Development
Streamlines the development of Swift clients that connect to real-time Rivet Actors for distributed state management.
This skill provides comprehensive guidance for integrating the RivetKit Swift client into iOS, macOS, or server-side Swift applications. It equips developers with best-practice patterns for establishing connections to Rivet Actors, executing stateless actions, and managing stateful WebSocket connections for real-time event streaming. By offering standardized implementation details for actor handles, error handling policies, and hierarchical key addressing, it ensures robust and scalable communication with the Rivet AI backend infrastructure across mobile and server-side platforms.
Key Features
01Robust error handling protocols using typed ActorError and fail-fast policies
02Real-time event subscription using Swift AsyncStream and WebSocket connections
03Low-level HTTP and WebSocket support for custom actor implementations
04Stateless action calls with typed positional arguments and JSON fallbacks
05Comprehensive actor lifecycle management including creation, retrieval, and ID resolution
0616 GitHub stars
Use Cases
01Developing live-syncing collaborative Swift applications with stateful backends
02Building real-time multiplayer iOS game clients backed by Rivet Actors
03Implementing server-to-server communication between Vapor/Hummingbird and Rivet infrastructure