"Pushing" updates to the website? #242
Closed
philippludwig
started this conversation in
General
Replies: 1 comment 1 reply
-
This is in fact described in the htmx manual: https://hypermedia.systems/a-dynamic-archive-ui/ tl;dr: You use conditional polling. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So after working through the tutorial, I wonder if it is possible to display the status of a long-running task on the web page. Toy example: Let's say I have a counter
(def +counter+ (atom 1))
that gets increased once per second from a different thread.Is it possible to show the current value of
+counter+
without manually refreshing the page?I am aware that there is a section in the tutorial about websockets, but I did not understand the majority of it. Maybe someone has already done something like this and can provide a simple example?
Beta Was this translation helpful? Give feedback.
All reactions