webtty: Webtty on web example does not work?
In both firefox and chrome, I get an error at https://maxmcd.github.io/webtty/, whenever I try to paste the offer message…
InvalidParameterError: Empty or null SDP provided to setLocalDescription
InvalidStateError: setRemoteDescription not called
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 17 (10 by maintainers)
The encode and decode functions are defined within webassembly. They are here: https://github.com/maxmcd/webtty/blob/master/web-client/src/main.go#L60-L63 (Webassembly can’t mutate the global javascript state by itself but wasm_exec.js allows Go to call into the browser context)
If there was an error loading the webassembly those functions would not be available, but assuming success decode and encode should be available on the
window
object.Appreciate you looking into this, I still haven’t been able to reproduce on my end, will look into it again.