Closed backkem closed 5 years ago
The changes in pions/webrtc#565 make the required changes to support the WebRTC side in WASM. TODO: Test to see if the Dial side works from WASM. The Listen side uses an HTTP server so it won't work unless we move to a different signaling strategy.
Support
js/wasm
build target.TODO
js/wasm
build target inpions/datachannel
DataChannel.Detach
support using thejs/wasm
build target inpions/webrtc
.ALTERNATIVE We could also build this library using the
OnMessage
callback instead of usingDetach
(when targettingjs/wasm
). However, it seems easier to maintain the wiring aroundOnMessage
in pions/datachannel instead.