Skip to content

RealtimeV2 does not handle connection failures #246

Closed
@TiagoLira

Description

@TiagoLira

Bug report

Describe the bug

I've just migrated to RealtimeV2, and it does not seem to handle disconnects.
On V1, when disconnecting the device from the internet, I would immediately get the "socket closed" messages, and it would reconnect as soon as the connection was back.
On V2, the socked closed message shows up much later, and it doesn't reconnect at all when the device is connected again.

Is there any additional steps I need to take? It seems strange as it worked on the previous version, and it's a fairly common need in real usage scenarios.

To Reproduce

Just connect to realtime database changes, and set the device to airplane mode (or turn off the internet otherwise).

System information

  • Version of supabase-swift: 2.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions