Skip to content

add a configurable reconnect option for websocket#434

Merged
jmattheis merged 4 commits intogotify:masterfrom
sratabix:configurable-reconnect
Feb 13, 2026
Merged

add a configurable reconnect option for websocket#434
jmattheis merged 4 commits intogotify:masterfrom
sratabix:configurable-reconnect

Conversation

@sratabix
Copy link
Contributor

This adds 2 options to control the way the websocket reconnects when it fails:

  • reconnect interval
  • constant retry interval

@jmattheis
Copy link
Member

FYI: I'm currently a little busy and my android testing setup broke. I'll try to review this this or next week.

Comment on lines +32 to +33
private val reconnectDelay: Duration,
private val exponentialBackoff: Boolean
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made some changes

  • used Durations everwhere
  • renamed interval to delay
  • added exponential backoff
  • inversed the constant retry interval setting

@jmattheis jmattheis merged commit 0689d2d into gotify:master Feb 13, 2026
1 of 2 checks passed
@sratabix
Copy link
Contributor Author

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants