phoenixframework / phoenix_live_dashboard

Realtime dashboard with metrics, request logging, plus storage, OS and VM insights

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible to use without websockets?

uumo opened this issue · comments

commented

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!

commented

Thanks for the reference code link! I made a pull request