小程序容器助力企业在金融与物联网领域实现高效合规运营,带来的新机遇与挑战如何管理?
587
2022-10-12
PeerKit 一个开源的Swift框架,用于构建事件驱动的零配置Multipeer连接应用程序
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 typePeerKit.transceive("com-jpsim-myApp")enum Event: String { case StartGame, EndGame}// Send a StartGame event with attached data to all peersPeerKit.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.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~