johanhelsing / matchbox

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

Fix panic when using bevy_matchbox signaling feature #352

Closed johanhelsing closed 1 year ago

johanhelsing commented 1 year ago

This moves the binding to the async serve method, not sure if that's a good idea or not.

Fixes: #350

johanhelsing commented 1 year ago

Just tested in a project, and it seems to be working

johanhelsing commented 1 year ago

The problem is that configure socket addr is not the same as bound socket addr, so the tests all have port 0. Had a go at solving this in #355, but it required some API changes.