Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make reconnect timer customizable #369

Open
ProductiveAsparagus56 opened this issue Aug 18, 2024 · 7 comments
Open

Make reconnect timer customizable #369

ProductiveAsparagus56 opened this issue Aug 18, 2024 · 7 comments
Labels
a:feature New feature or request

Comments

@ProductiveAsparagus56
Copy link

Hi, I would like to change the amount of time the application waits to reconnect to the server. Currently it waits 60 seconds and then increments. Personally I would like the app to try to reconnect every 10 seconds without incrementing, I can see that's overkill for most people, so I'm asking for this timer to be made customizable.

@jmattheis
Copy link
Member

What's your use-case for this?

@ProductiveAsparagus56
Copy link
Author

I want to get notifications to my phone with less downtime than the preconfigured settings. If that doesn't answer your question, could you be more specific?

@jmattheis jmattheis added the a:feature New feature or request label Aug 18, 2024
@jmattheis
Copy link
Member

Nah good enough. Was asking because maybe there was some kind of scenario where you always have disconnections and it'd be noticeable that there is some delay when reconnecting.

@ProductiveAsparagus56
Copy link
Author

Hi, I think it would also be a good idea to reopen the websocket immediately when a manual refresh is triggered. I added this here as I felt it was related.

@jmattheis
Copy link
Member

There is a full refresh button in the navigation drawer, this one forces a reconnect of the websocket.

@TNTzx
Copy link

TNTzx commented Oct 23, 2024

for me a use case for this is that i have gotify hosted on a machine that i need to turn off every once in a while for quite a long time (likely 1 to 2 hours). i don't want every user to keep reconnecting every few minutes while that's happening

@alexitx
Copy link

alexitx commented Nov 1, 2024

A configuration for this would be great as I'm sometimes on unstable 4G connection which can sporadically disconnect, which causes Gotify to wait for >3 minutes. Since frequent requests aren't an issue for me, I'd like to try to reconnect more aggressively, something like 1s interval with each retry doubling the time. Opening the app and refreshing is the only fast and reliable option for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature New feature or request
Development

No branches or pull requests

4 participants