You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had asked before about the client not reconnecting, and it seems that it is reconnecting too well now :)
What happens is that after I call realtimeV2.disconnect(), it immediately triggers an error on the client's messageTask task and starts a reconnect.
I couldn't find any way to disconnect it properly.
To Reproduce
My use case is that I want to unsubscribe and disconnect when the app goes to the background.
When I connect I simply subscribe to a channel and listen for statusChanges.
When the app goes to background I run:
let realtime = client.realtimeV2
if let channel = realtimeChannel {
await realtime.removeChannel(channel)
}
realtime.disconnect()
realtimeChannel = nil
Right after this, the reconnect() call is triggered on messageTask.
Expected behavior
The client should not try to reconnect if disconnect() is called.
System information
OS: iOS 18
The text was updated successfully, but these errors were encountered:
Bug report
Version
supabase-swift 2.23.0
Describe the bug
I had asked before about the client not reconnecting, and it seems that it is reconnecting too well now :)
What happens is that after I call
realtimeV2.disconnect()
, it immediately triggers an error on the client'smessageTask
task and starts a reconnect.I couldn't find any way to disconnect it properly.
To Reproduce
My use case is that I want to unsubscribe and disconnect when the app goes to the background.
When I connect I simply subscribe to a channel and listen for statusChanges.
When the app goes to background I run:
Right after this, the
reconnect()
call is triggered onmessageTask
.Expected behavior
The client should not try to reconnect if
disconnect()
is called.System information
The text was updated successfully, but these errors were encountered: