insidegui / MultipeerKit

MultipeerConnectivity + Codable = ❤️
BSD 2-Clause "Simplified" License
1.1k stars 71 forks source link

Added localPeerId variable to MultipeerTranseiver #8

Closed JordanOsterberg closed 4 years ago

JordanOsterberg commented 4 years ago

I added a String? property to MultipeerTranseiver called localPeerId. This property accesses a new method on MultipeerProtocol: getLocalPeerId(). Implemented in MultipeerConnection, it creates a temporary Peer object in order to access its id property.