Skip to content

feat(android): implement connection watchdog, optimize autoconnect, and refine socket ping interval - #110

Closed
Mudit200408 wants to merge 1 commit into
sameerasw:developfrom
Mudit200408:test-con
Closed

feat(android): implement connection watchdog, optimize autoconnect, and refine socket ping interval#110
Mudit200408 wants to merge 1 commit into
sameerasw:developfrom
Mudit200408:test-con

Conversation

@Mudit200408

Copy link
Copy Markdown
Contributor
  • Enable OkHttp pingInterval (10 seconds) on the client WebSocket to automatically detect half-open sockets and lost connections faster.
  • Introduce a connection watchdog in WebSocketUtil to monitor connection health and coordinate with the macOS server's reconnect grace timer.
  • Refactor AirSyncService and WakeupHandler to improve auto-start and connection reliability after reboot.
  • Enable directBootAware for MediaNotificationListener and AirSyncService.
  • Optimize network state validation and simplify network state tracking by cleaning up dead code.
  • Send manual disconnect signals over BLE before terminating connection to prevent ghost sessions on Mac.

Basically improves the auto connect...
You can now swiflty connect both android and mac via Hotspot
The UI changes instantly when detected that the network has changes instead of misleading the users
Restart the Android device and within 30secs both android and mac will automatically connect without ever opening the app in android or mac

…nd refine socket ping interval

- Enable OkHttp pingInterval (10 seconds) on the client WebSocket to automatically detect half-open sockets and lost connections faster.
- Introduce a connection watchdog in WebSocketUtil to monitor connection health and coordinate with the macOS server's reconnect grace timer.
- Refactor AirSyncService and WakeupHandler to improve auto-start and connection reliability after reboot.
- Enable directBootAware for MediaNotificationListener and AirSyncService.
- Optimize network state validation and simplify network state tracking by cleaning up dead code.
- Send manual disconnect signals over BLE before terminating connection to prevent ghost sessions on Mac.
@sameerasw

Copy link
Copy Markdown
Owner

Stale PR

@sameerasw sameerasw closed this Jul 11, 2026
@github-project-automation github-project-automation Bot moved this from Backlog to Done in AirSync Features and Bugs Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants