insidegui / MultipeerKit

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

Failable send and broadcast #32

Closed antigp closed 10 months ago

antigp commented 10 months ago

While usage MultipeerKit, we need to know: If send is successful or not. And we need to reconnect or inform client.

insidegui commented 10 months ago

I don't like the idea of having two separate versions of the methods. Having sends fail silently was a poor API choice in my opinion. I'm preparing some other changes for a major update, and one of those changes will be to make the send and broadcast methods throwing, so the decision to handle or ignore any errors will be on the call site.

antigp commented 10 months ago

Ok, waiting for release