I advise against continuing this research. WebAssembly, which would have to use the same WebSocket API's as JavaScript (via web-sys
), is totally irrelevant to whether HTTP is allowed. You cannot use tungstenite
in WebAssembly because it requires a raw TCP stream, and browsers don't offer them due to security concerns.