What's Changed
BREAKING CHANGES
We dropped the typestate pattern on WebRtcSocket
. This means no more WebRtcSocket<SingleChannel>
or WebRtcSocket<MultiChannel>
There is simply WebRtcSocket
. And the same goes for bevy_matchbox
' MatchboxSocket
.
A single channel socket is now just a socket with one channel.
Code that previously used WebRtcSocket<SingleChannel>
now just needs to use the channel accessor to get to the channel:
v0.10
socket.send(message, peer);
v0.11
socket.channel_mut(0).send(message, peer);
We've also removed the ggrs
convenience constructors. Users are now expected to know that they need an unreliable channel for GGRS to work optimally. The ggrs socket implementation is now removed from the socket itself and only implemented by the channels. See the example for how to use matchbox with GGRS.
Features
- Add
construct_router
function by @RaoulHC in #447 - Upgrade to bevy 0.15 by @haihala in #466
- feat: add async api by @th4s in #461
Other fixes
- bevy_matchbox example header comments to include reference to cargo dependency changes when needed for integration. by @CodyTheDoer in #465
- Upgrade to webrtc-rs 0.12 by @johanhelsing in #472
New Contributors
- @CodyTheDoer made their first contribution in #465
- @caspark made their first contribution in #468
- @th4s made their first contribution in #461
- @haihala made their first contribution in #466
Full Changelog: v0.10.0...v0.11.0