Solara server disconnect - settings
Hi there,
It is well known that the solara docs page is itself written in solara (nice demo!)
However, of the browser tab is left alone for too long, the server disconnects and you get a message asking you to reconnect. This is a nice feature actually! I am wondering :
- is there a config or a way one can configure when this happens (after how much time)
- if we can access and modify the components that give you the message (to adjust the wording, style etc..)
Many thanks!
4 Replies
No, the discconnect happens because the server restarts, in general it should not happen. Does it happen in your case?
I think you are talking about https://github.com/widgetti/solara/blob/ea64ba9e9e00314d27e64dc11b6ce618520f9d9e/solara/server/templates/solara.html.j2#L75 right?
Althoug it is possible to override the template (see e.g. https://github.com/widgetti/solara/blob/master/solara/website/templates/index.html.j2 )
this might break future versions.
But you could consider copy-pasting our jinja template and modifying it to your needs.
solara/server/templates/solara.html.j2
line 75
@MaartenBreddels I experience the same, the server disconnects after some time and I get the error to reload
ok i understand! Yes it happens on the solara.dev live website, so i thought it is a feature to save resources (smart!).
But maybe the server disconnects/restarts after some time of inactivity. It never happens if the app is in use (which is nice of course).
Ok so cool, this can probably be configured on the server side! Thanks!