pub fn init_data_channel(
channel: Rc<RefCell<RtcDataChannel>>,
onclose: Closure<dyn Fn()>,
onopen: Closure<dyn Fn()>,
onmessage: Closure<dyn Fn(JsValue)>,
)Expand description
Initialize an RtcDataChannel, with the given callback Closures