The websocket library being used currently does not support websockets in the browser, which means that when compiled, it would try to use the operating system's syscalls to make a tcp connection. Instead we want something, when compiled to wasm, would use browser's websocket/network stack.
The nhooyr.io/websocket library is wasm compatible and the changes needed to switch to it, is minimal.
The websocket library being used currently does not support websockets in the browser, which means that when compiled, it would try to use the operating system's syscalls to make a tcp connection. Instead we want something, when compiled to wasm, would use browser's websocket/network stack.
The nhooyr.io/websocket library is wasm compatible and the changes needed to switch to it, is minimal.