Re: [webrtc-pc] Add support for WebRTC Data Channel in Workers (#230)

Can `self` or `globalThis` be substituted for all references to `window` and `import()` or `importScripts()` be substituted for `document` within https://github.com/rustwasm/wasm-bindgen/tree/master/examples/webrtc_datachannel to be able to use the Rust wasm-bindgen version of `RTCDataChannel` https://rustwasm.github.io/wasm-bindgen/examples/webrtc_datachannel.html in `Worker`?

All the logs at https://rustwasm.github.io/wasm-bindgen/exbuild/webrtc_datachannel/ are on line 333 in index_bg.js:333. 

-- 
GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/230#issuecomment-695801969 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 20 September 2020 15:47:23 UTC