All Projects → jpsim → Peerkit

jpsim / Peerkit

Licence: mit
An open-source Swift framework for building event-driven, zero-config Multipeer Connectivity apps

Programming Languages

swift
15916 projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].