matchbox
matchbox copied to clipboard
How to make connection status check and auto re-connect with matchbox?
There are many unwrap() in main/matchbox_socket/src/webrtc_socket/[wasm.rs, native.rs].
When I want to make connection status check and re-connect action, some .unwrap() make panic.
Did you actually encounter any?
Thanks for your quickly reply.
Yes. I am making something like re-connection in wasm when network recovery. Got some error in web console:
panicked at /Users/xxx/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/matchbox_socket-0.12.0/src/webrtc_socket/wasm.rs:432:78:
called `Result::unwrap()` on an `Err` value: JsValue(InvalidStateError: Can't create RTCPeerConnections when the network is down
Could you make a separate issue for that? Or change the title of this one?
Could you make a separate issue for that? Or change the title of this one?
Done.