Skip to content

tools: localhost: browser requests data - #124

Merged
JordanYates merged 2 commits into
mainfrom
feature/locahost_request
Mar 10, 2026
Merged

tools: localhost: browser requests data#124
JordanYates merged 2 commits into
mainfrom
feature/locahost_request

Conversation

@JordanYates

Copy link
Copy Markdown
Contributor

Switch the data updates from an unconditional 1Hz data send by the
python server to a browser requested 1Hz poll model. This fixes two
problems.

If the browser suspends the tab due to inactivity, there is no longer a
backlog of data to process when the user returns, as the requests were
also suspended.

The python server gets immediate notification when the browser
disconnects, as it is handling events from the browser.

Switch the data updates from an unconditional 1Hz data send by the
python server to a browser requested 1Hz poll model. This fixes two
problems.

If the browser suspends the tab due to inactivity, there is no longer a
backlog of data to process when the user returns, as the requests were
also suspended.

The python server gets immediate notification when the browser
disconnects, as it is handling events from the browser.

Signed-off-by: Jordan Yates <jordan@embeint.com>
Extract websocket message generation to a dedicated function.

Signed-off-by: Jordan Yates <jordan@embeint.com>
@JordanYates
JordanYates merged commit 5b57f5b into main Mar 10, 2026
7 checks passed
@JordanYates
JordanYates deleted the feature/locahost_request branch March 10, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant