{"repo":"heroiclabs/nakama-swift","free":true,"listed":false,"github":"https://github.com/heroiclabs/nakama-swift","clone":"git clone https://github.com/heroiclabs/nakama-swift.git","description":"Nakama Swift Client SDK","language":"Swift","stars":30,"topics":["realtime","game-server","nakama","swift-client","realtime-chat","nakama-swift","nakama-server","backend","client","gamedev"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"Nakama Swift ============ Nakama is an open-source server designed to power modern games and apps. Features include user accounts, chat, social, matchmaker, realtime multiplayer, and much more. This client is written in swift and supports Nakama v3 API and socket features. Most apple platforms are supported including: iOS, macOS, iPadOS, tvOS and visionOS. The client is implemented using swift concurrency with async/await for asynchronously calling client and socket methods. Minimum supported swift version is 5.10 Getting Started You need to use Swift Package Manager (SPM) for integrating the sdk into your project. Add nakama-swift as a dependency to your Package.swift or using Xcode project Package Dependencies settings. Package.swift: After the package is installed, build the client object using connection credentials: Usage The client object has many methods to execute various features in the server or open realtime socket connections with the server. Authenticate There's a variety of ways to authenticate with the server. Authentication can create a user if they don't already exist with those credentials. It's also easy to authenticate with a social profile from Google Play Games, Facebook, Apple, Game Center, etc. async request needs to be included inside a do-catch statement to handle throwing errors, it will be ommitted in next examples for simplicity. Sessions When authenticated the server responds with an auth token (JWT) which contains useful properties and gets dese","default_branch":null,"files":null,"tree":[],"storefront":"/r/heroiclabs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/heroiclabs/nakama-swift/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}