paullouisageneau / datachannel-wasm

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

Usage of IceServer as a struct in Configuration #16

Closed hanseuljun closed 3 years ago

hanseuljun commented 3 years ago

To support TURN, username and password needs to be provided. And for doing this, I think struct IceServer should be added and std::vector should be a member variable of Configuration instead of std::vector. This will increase the compatibility of datachannel-wasm to the current version of libdatachannel.

I plan to do this, but first mentioning it here since the change won't be 100% backward compatible, though the difference would be trivial enough to catch up. Let me know if this is not what you want.

paullouisageneau commented 3 years ago

Indeed the support for TURN is currently missing. I think adding the same IceServer structure as libdatachannel makes sense!