johanhelsing / matchbox

Painless peer-to-peer WebRTC networking for rust wasm (and native!)
Apache License 2.0
869 stars 72 forks source link

Fix bevy matchbox signaling panic #355

Closed johanhelsing closed 10 months ago

johanhelsing commented 10 months ago

Alternative to #352

Axum expects being run in a tokio context, but Bevy isn't that. Use the same approach as we do for matchbox_socket, and wrap the async call using async-compat

Moves binding to an explicit optional step, and makes Server::local_addr return an Option<SocketAddr>

Fixes #350