matchbox
matchbox copied to clipboard
Handle returning to ice gathering stage
Currently we stop anything related to ice once the data channel has opened, however It's possible to return to the ice gathering state, and we should probably handle that.
Ref this comment: https://github.com/johanhelsing/matchbox/blob/97c2ea1ed5dfbfd2f987af661973e28ed6e47f47/matchbox_socket/src/webrtc_socket/wasm/message_loop.rs#L255
https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceGatheringState
Is this only for WASM?
I don't know/remember. Not really sure exactly what kinds of things will trigger additional gathering either.
Perhaps if you enable or disable wireless?
I wrote this down mostly because i saw it in the mdn docs and didn't want to forget about it.
relevant docs: https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Session_lifetime#ice_restart
This sounds low priority since it is a network renegotiation under rare circumstances to increase performance, not to solve a severe problem in connectivity.
Good find.
Yes, let's ignore it for now, we have bigger fishes to fry :)