Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework wakeup of tcpJSONRPC #1182

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

wutschel
Copy link
Collaborator

@wutschel wutschel commented Nov 1, 2024

Description

Closes #1175.

Move init of tcpJSONRPC to init of main iPad/iPhone controllers and do not start the heartbeat in the init anymore. Generally hook up starting the heartbeat timer with applicationDidBecomeActive instead of applicationWillEnterForeground as the socket will be available at this time and no additional timeout is needed.

Summary for release notes

Improvement: Rework wakeup of tcpJSONRPC
Improvement: Avoid loss of connection during wakeup

Move init of tcpJSONRPC to init of main iPad/iPhone controllers and do not start the heartbeat in the init anymore. Generally hook up starting the heartbeat timer with DidBecomeActive instead of WillEnterForeground as the socket will be available at this time and no additional timeout is needed.
@wutschel wutschel marked this pull request as ready for review November 1, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor app wakeup to use DidBecomeActive instead WillEnterForeground
1 participant