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 c88c9a9 commit e278eb2Copy full SHA for e278eb2
templates/swift/Sources/Services/Realtime.swift.twig
@@ -223,7 +223,7 @@ extension Realtime: WebSocketClientDelegate {
223
stopHeartbeat()
224
225
if (!reconnect) {
226
- onCloseCallback?()
+ onCloseCallbacks.forEach { $0() }
227
reconnect = true
228
return
229
}
@@ -243,7 +243,7 @@ extension Realtime: WebSocketClientDelegate {
243
244
print(error?.localizedDescription ?? "Unknown error")
245
246
- onErrorCallback?(error, status)
+ onErrorCallbacks.forEach { $0(error, status) }
247
248
249
func handleResponseError(from json: [String: Any]) throws {
0 commit comments