phoenix_profiler
phoenix_profiler copied to clipboard
Display a live indicator
I am thinking we could display the status-online
icon in place of the duration measurement when the liveview is connected. (Something like .phxweb-toolbar-view.phx-connected .phxweb-toolbar-live{ display: inline }
and hide the rest)
Do you have plans to show if LV has entered in the fail safe mode? I see it's not useful to everyone to have such information but we had cases where websocket was blocked on the client and we had to simulate and deal with that scenario (displaying a warning page, dispatching notification and stuff like that), so it could be useful. There's no public API to fetch this information from LV, except for https://github.com/phoenixframework/phoenix_live_view/blob/afdee17134699f792b41f98e220cef1805b041f8/assets/js/phoenix_live_view/live_socket.js#L271
I think that's a great idea! We'll need to be able to differentiate between a disconnected LiveView and a stateless request.