lerouxrgd / datachannel-rs

Rust wrappers for libdatachannel
Mozilla Public License 2.0
135 stars 26 forks source link

Reliable Data Channels? #1

Closed D1plo1d closed 4 years ago

D1plo1d commented 4 years ago

Does this crate support reliable unordered mode data channels?

lerouxrgd commented 4 years ago

It will very soon, stay tuned !

D1plo1d commented 4 years ago

Very exciting!

lerouxrgd commented 4 years ago

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.

D1plo1d commented 4 years ago

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!