Skip to content

Commit c88c9a9

Browse files
ChiragAgg5kCopilot
andauthored
Update templates/swift/Sources/Services/Realtime.swift.twig
Co-authored-by: Copilot <[email protected]>
1 parent cc46d55 commit c88c9a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/swift/Sources/Services/Realtime.swift.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,8 @@ extension Realtime: WebSocketClientDelegate {
222222
public func onClose(channel: Channel, data: Data) async throws {
223223
stopHeartbeat()
224224

225-
onCloseCallback?()
226-
227225
if (!reconnect) {
226+
onCloseCallback?()
228227
reconnect = true
229228
return
230229
}

0 commit comments

Comments
 (0)