3 ms·
Auto refresh seems a bit like phoenix's liveview? It sounds like the database hooks are a bit blunt, but I guess if your queries are low cost it could be quite
by keithnz 6y ago
Auto refresh seems a bit like phoenix's liveview? It sounds like the database hooks are a bit blunt, but I guess if your queries are low cost it could be quite responsive
- _query 6y agoYes, this is very similiar. We used it extensively to build IHP Cloud [0] where we have a lot of async background processing. AutoRefresh allows the view to be updated automatically when e.g. the deployment status changes without us writing any app-specific JS code. It's takes only a single line of haskell code, so it's implemented in seconds and then really just works :) Would we have to use AJAX polling for that or would need to write Websocket Code manually, we'd need to spend way more time on that. [0]: https://ihpcloud.com/ https://ihpcloud.com/