-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
htmx sse #1
Comments
Thanks! I'll look into this. |
you might find this interesting. htmgo a htmx golang system, with that code generates the Router and a few other bits. It's using SSE too. The Issue is talking about compiling to WASM, which of course is what you do, compiling to WASM for Cloud Flare. The reason I am talking about this link is because I think I can adapt the HTMGO code gen so that it works with github.com/syumai/workers, just like you have. |
In regard to the issue you linked, it sounds like an interesting idea! Dependencies not compiling to WASM is a pretty huge issue at the moment, many libraries I have tried to import failed to build, or worse failed at runtime when running in webassembly. :( This project uses tinygo to build for WASM as it helps reduce the size of the output binary, but many built-in Go features are not implemented on TinyGo, and vice versa. It's a tricky balancing act. On adding SSE, The main issue I had when building it was that every guide instructs you to use I hope this may be of help to you! Thanks for taking the time to write an issue and response. |
Totally know what you mean about the “ flushing “. Polling is the only solution , but let me have a look . Have 2 other ideas for where the actor lives .. |
nice proof of concept.
so web screens update without a refresh also. htmx sse is good for this.
https://github.com/bigskysoftware/htmx-extensions/blob/main/src/sse/sse.js
The text was updated successfully, but these errors were encountered: