lerouxrgd/datachannel-rs

Reliable Data Channels?

Closed this issue ยท 4 comments

Does this crate support reliable unordered mode data channels?

It will very soon, stay tuned !

Very exciting!

This has been added in 0.1.2.

You can now define a Reliability struct that should be passed to RtcPeerConnection::create_data_channel_ext. In your case that would be Reliability::default().unordered() (see an example in tests/websocket.rs).

Let me know if that works for you.

Wow, yes, that looks great, Your a bit ahead of me on this one - I'm about a third of the way through porting my 3D printing over WebRTC app ( https://tegapp.io ) from NodeJS to Rust and the WebRTC connection will have to be the last to be ported. I am very excited to give this a go once I've gotten out from under my pile of Rust porting. Thanks so much!