johanhelsing / matchbox

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

How to stop signal loop when channel is ready #349

Closed MrToy closed 10 months ago

MrToy commented 10 months ago

when the peer connection is successful, signaling_loop and message_loop still keep running. Is there a way to stop the signal loop when the signaling service is not needed? After the game is successfully matched, the signaling service may not be necessary, but now when an error occurs in the signaling service, message_loop will also stop working.

johanhelsing commented 10 months ago

See #252 for some discussion on this