centrifuge-go icon indicating copy to clipboard operation
centrifuge-go copied to clipboard

Research possibility to compile for WebAssembly

Open FZambia opened this issue 2 years ago • 2 comments

Would be nice if centrifuge-go could work in WASM env. At this moment there is no understanding which caveats we can meet on this way (some general understanding that we can't use Gorilla WebSocket in wasm, but still lots of questions about API side) - so first step would be collecting that understanding.

FZambia avatar Sep 03 '22 05:09 FZambia

Did some research in https://github.com/centrifugal/centrifuge-go/pull/68

FZambia avatar Sep 04 '22 05:09 FZambia

This is great

temoving fmt or http imports helps reduce size.

the other two bugs will require switching out the libs or waiting for tinygo to eventually have full reflect support. timers is holding up other golang tinygo projects also

i would raise a linked issue on tinygo repo of the PR so they can see the blockers too.

will have a look at this next week !

gedw99 avatar Sep 04 '22 06:09 gedw99