squirrel-labs / ratatosk

Rask is a platformer game built with WASM and Rust
https://rask.rocks
MIT License
15 stars 1 forks source link

Implement websockets #1

Closed TrueDoctor closed 5 years ago

TrueDoctor commented 5 years ago

the websocket connection sends a blob, which is rather difficult do work with. We essentially have to convert the blob into a response and await that response. https://github.com/rustwasm/wasm-bindgen/issues/5 https://developer.mozilla.org/en-US/docs/Web/API/Blob

TrueDoctor commented 5 years ago

The bob is now correctly read. The connection is ready for basic bytearray communication