项目
在 GitHub 查看
jpsim/PeerKit
关于
用于构建事件驱动、零配置 Multipeer Connectivity 应用的开源 Swift 框架。
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文PeerKit
An open-source Swift framework for building event-driven, zero-config Multipeer Connectivity apps
Usage
// Automatically detect and attach to other peers with this service type
PeerKit.transceive("com-jpsim-myApp")
enum Event: String {
case StartGame, EndGame
}
// Send a StartGame event with attached data to all peers
PeerKit.sendEvent(Event.StartGame.rawValue, object: ["myInfo": "hello!"])
See the CardsAgainst app for example usage. Specifically the ConnectionManager class.
License
This project is under the MIT license.
探索相关项目
加载中…