Skip to content
An open-source Swift framework for building event-driven, zero-config Multipeer Connectivity apps
Swift Ruby Objective-C
Branch: master
Clone or download
Latest commit 8b2cc87 Oct 25, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
PeerKit.xcodeproj Convert to Swift 4 Oct 25, 2017
PeerKit Set version to 4.0.0 Oct 25, 2017
PeerKitTests update to Swift 2.3 Sep 18, 2016
.gitignore
LICENSE First commit Nov 6, 2014
PeerKit.podspec
README.md Remove explicit value for String-based enums Sep 22, 2016

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.

You can’t perform that action at this time.