Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AgoraIO/AgoraRtm_Apple
[Beta] Agora's Signaling 2.0 SDK Swift Package for iOS, macOS and visionOS 📦
https://github.com/AgoraIO/AgoraRtm_Apple
agora agora-rtm chat ios macos messaging networking realtime-messaging synchronization vision-pro visionos
Last synced: 3 months ago
JSON representation
[Beta] Agora's Signaling 2.0 SDK Swift Package for iOS, macOS and visionOS 📦
- Host: GitHub
- URL: https://github.com/AgoraIO/AgoraRtm_Apple
- Owner: AgoraIO
- License: mit
- Created: 2023-10-31T08:49:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-12T16:36:38.000Z (about 1 year ago)
- Last Synced: 2024-09-30T06:34:02.155Z (4 months ago)
- Topics: agora, agora-rtm, chat, ios, macos, messaging, networking, realtime-messaging, synchronization, vision-pro, visionos
- Language: Swift
- Homepage: https://agoraio.github.io/AgoraRtm_Apple/
- Size: 69.3 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> [!WARNING]
> This is a beta product# AgoraRtm
AgoraRtm is a Swift package that provides an easy-to-use interface for integrating Agora Real-Time Messaging (RTM) into your iOS applications. It offers a set of classes and methods that enable you to establish real-time messaging and communication channels.
## Features
- **User Authentication:** Authenticate users using tokens for secure communication.
- **Message Communication:** Send and receive real-time messages between users.
- **Presence Management:** Query and update the presence status of users.
- **Lock Management:** Manage locks for synchronization between users.
- **Storage Management:** Store and retrieve user-specific data in real time.
- **Topic Management:** Create and manage channels for different topics.## Requirements
- iOS 13.0+ or macOS 10.15
- Xcode 14.0+
- Swift 5.8+## Installation
To integrate AgoraRtm into your Xcode project, you can use Swift Package Manager. Here's how:
1. In Xcode, open your project.
2. Select File > Swift Packages > Add Package Dependency.
3. Enter the package repository URL: `https://github.com/AgoraIO/AgoraRtm_Apple.git`.
4. Choose a version rule or enter a specific branch, tag, or commit hash.
5. Click Next, then Add `AgoraRtmKit-Swift` library.## Getting Started
### Initialization
To get started with AgoraRtm, you need to initialize an `RtmClientConfig` instance and create an `RtmClientKit` instance with it. Here's an example:
```swift
import AgoraRtm// Create an `RtmClientConfig` instance
let rtmConfig = RtmClientConfig(
appId: "example-appId",
userId: "example-username"
)let rtmClient = RtmClientKit(config: rtmConfig, delegate: self)
```