Possible to use without websockets?
uumo opened this issue · comments
Hi! I'm new to elixir, setup this dashboard locally and it's awesome!
Unfortunately when run on an env without websockets: (https://stackoverflow.com/questions/51375790/load-balancing-websockets-on-digital-ocean)
- the loading bar at the top of the window makes slow progress then resets repeatedly
- links do nothing when clicked
- pages do actually show useful data, but have to be manually navigated to ( like /dashboard/processes ) and internal links like pagination are also broken
Is there some configuration to fall back to longpoll or plain html? I'm not planning to use Phoenix Liveview besides this, I'm only using Elixir for some backend scheduling stuff
Thanks!
Hi @uumo , this project doesn't have long polling I believe but you can try changing its javascript to add it. Here is how that would look like:
https://github.com/dashbitco/bytepack_archive/blob/main/apps/bytepack_web/assets/js/app.js#L57-L86
Give that a try in a fork and see if it works for you. In case it does, please submit a PR! Thanks!
Thanks for the reference code link! I made a pull request