We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 539b8df commit 6f9320aCopy full SHA for 6f9320a
src/main/kotlin/org/phoenixframework/PhxSocket.kt
@@ -127,6 +127,14 @@ open class PhxSocket(
127
httpUrl = httpBuilder.build()
128
}
129
130
+ reconnectTimer = PhxTimer(
131
+ callback = {
132
+ disconnect().also {
133
+ connect()
134
+ }
135
+ },
136
+ timerCalculation = reconnectAfterMs
137
+ )
138
139
// Hold reference to where the Socket is pointing to
140
this.endpoint = httpUrl.url()
0 commit comments