centrifuge-go
centrifuge-go copied to clipboard
Research possibility to compile for WebAssembly
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.
Did some research in https://github.com/centrifugal/centrifuge-go/pull/68
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 !