Closed simbleau closed 12 months ago
The PR above updates the bevy-ggrs
example to use bevy_matchbox
.
It is blocked on #283 unfortunately.
I isolated the issue and found out the issue.
socket.channel(RELIABLE_CHANNEL_INDEX).receive()
can hang infinitely.
This is talked about and fixed in #329
Hard to make a reproducible example, but I am working on it.
Here's what I've done:
try_update_peers
instead ofupdate_peers
(which would prevent the example from panicking when it fails to connect to the signaling server)bevy_matchbox
... Change to usecommands.open_socket()
and.close_socket()
And finally, the part that will hang the program indefinitely:
If it uses a single channel it will work as intended.