2

I learned the hard way that the browsers' WebSocket API does not support back-pressure. Is there a way to work around this limitation without having to manually implement control flow on the application layer protocol? Would it for example be possible to implement a full WebSocket client in WASM, instead of having to proxy everything through the browser's API?

piegames
  • 975
  • 12
  • 31

1 Answers1

0

Back-pressure: no changes to the protocol that are addressing this issue are published to this time.

WebAssembly: there is no access to the WebSocket API (or any other) at this time from a pure WebAssembly module. You will have to use JavaScript in one way or another.

Nikolay Handzhiyski
  • 1,360
  • 1
  • 6
  • 20