The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
- Introduces new callbacks: `peerConnected` and `peerDisconnected`
- Fixes a crash that could occur when stopping/resuming the transceiver multiple times during its lifetime (#12)
- Adds DocC documentation
Version 0.3.1
3 years ago
Addresses a crash which would occur when the app's Info.plist was missing required keys on iOS 14. See the readme for more information.
Receiver blocks now receive the `Peer` the message was sent from. This is a breaking change to the API, but it's very easy to account for in your code.
If you were previously doing something like this:
```swift
transceiver.receive(SomeCodableThing.self) { payload in
// handle
}
```
All you have to do is ignore the sender parameter in the closure, like so:
```swift
transceiver.receive(SomeCodableThing.self) { payload, _ in
// handle
}
```
Adds `localPeerId` property so that the your own peer ID can be accessed through the transceiver.