https://github.com/easemob/task-4-ios
https://github.com/easemob/task-4-ios
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/easemob/task-4-ios
- Owner: easemob
- Created: 2021-09-16T08:59:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-16T08:34:16.000Z (almost 5 years ago)
- Last Synced: 2025-04-14T14:59:13.285Z (over 1 year ago)
- Size: 532 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Task-4-iOS
## 安装Pod
``` shell
pod install
```
## 添加你自己的Key
修改`Config`中的配置文件
```
struct MqttOptions {
static let to = "" // xxx.cn1.mqtt.chat
static let port = 1883
static let appID = "" // xxx
static let base = "https://api.cn1.mqtt.chat/app/xxx"
static let orgName = ""
static let appName = ""
static var tokenBase: String {
return "https://a1.easemob.com/\(orgName)/\(appName)/token"
}
static var appKey: String {
return "\(orgName)#\(appName)"
}
static let clientID = ""
static let clientSecret = ""
}
```
## Build & Run
## 点击左上角可以添加新话题
## 点击右上角可以选择任意话题