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 997e27a commit 52bc09aCopy full SHA for 52bc09a
templates/swift/Sources/Services/Realtime.swift.twig
@@ -221,9 +221,10 @@ extension Realtime: WebSocketClientDelegate {
221
222
public func onClose(channel: Channel, data: Data) async throws {
223
stopHeartbeat()
224
+
225
+ onCloseCallbacks.forEach { $0() }
226
227
if (!reconnect) {
- onCloseCallbacks.forEach { $0() }
228
reconnect = true
229
return
230
}
0 commit comments