paullouisageneau / datachannel-wasm

C++ WebRTC Data Channels and WebSockets for WebAssembly in browsers
MIT License
148 stars 25 forks source link

usecase #41

Open ClosetGeek-Git opened 2 years ago

ClosetGeek-Git commented 2 years ago

Hi, I was wondering what the usecase is for using datachannel-wasm assuming most browsers capable of wasm should also be capable of datachannels as well?

paullouisageneau commented 2 years ago

Browsers support WebRTC but the corresponding API is exposed to JavaScript only, datachannel-wasm is a wrapper allowing to call the WebRTC API from C++ code targeting wasm.

wrnlb666 commented 1 year ago

Will this library hopefully get bindings for C and rust also?

paullouisageneau commented 1 year ago

Exposing a C API should be doable as the bindings between C++ and JS in datachannel-wasm are already done with an internal C API. I don't have plans for Rust bindings, but maybe the bindings for libdatachannel could be adapted.