Skip to content

client.isActive() returns true while device wi-fi is off #185

@zigzagg16

Description

@zigzagg16

Describe the bug
I can't find a simple way to check the session connectivity.
Playing with the iPad's wifi connection, I should get disconnection events, but not.
Also when wifi is off, client.isActive returns true

To Reproduce

my listener:

closeListenerTask = Task {
	let listener = client.addCloseListener(named: "closeListener") { result in
		switch result {
			case .success:
				// connected
			case .failure(let error):
				//disconnected with error
		}
	}
}

Expected behavior
When the wifi goes off (or device looses connection in general), I should receive connection/disconnection events

Context (please complete the following information):

  • Platform iPad OS 18.6
  • Swif Version: 5.9
  • Xcode Version 16.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions