Latest 4.0.0
Homepage https://github.com/jpsim/PeerKit
License MIT
Platforms ios 8.0, osx 10.10, requires ARC
Authors

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.

Latest podspec

{
    "name": "PeerKit",
    "version": "4.0.0",
    "summary": "Swift framework for building event-driven, zero-config Multipeer Connectivity apps",
    "authors": {
        "JP Simard": "[email protected]"
    },
    "license": "MIT",
    "homepage": "https://github.com/jpsim/PeerKit",
    "social_media_url": "https://twitter.com/simjp",
    "source": {
        "git": "https://github.com/jpsim/PeerKit.git",
        "tag": "4.0.0"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.10"
    },
    "source_files": "PeerKit/*.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This