Skip to content

v0.11.0

Latest
Compare
Choose a tag to compare
@johanhelsing johanhelsing released this 21 Dec 09:25

What's Changed

BREAKING CHANGES

  • Refactor: Drop typestate pattern for building sockets by @caspark in #468

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

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

Full Changelog: v0.10.0...v0.11.0