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
Fix heartbeat in the js client to be Lite compatible #7974
Conversation
client/js/src/client.ts
Outdated
`${config.root}/heartbeat/${session_hash}` | ||
); | ||
const heartbeat = EventSource_factory(heartbeat_url); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, this heartbeat
variable is not used after the declaration here. Is it ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we have to assign it to a variable since we just have to connect to it, we don't have to parse the messages on this channel.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
→ 26fd6da
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-builds.s3.amazonaws.com/26fd6daa87d3c48e48d6481c197a2b88fb2b5738/gradio-4.26.0-py3-none-any.whl Install Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@26fd6daa87d3c48e48d6481c197a2b88fb2b5738#subdirectory=client/python" |
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
Maintainers or the PR author can modify the PR title to modify this entry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for correcting this @whitphx !
Just tagged this to be a patch instead of a feature in the changelog |
* Fix heartbeat in the js client to be Lite compatible * add changeset * add changeset * Stop assigning the EventSource instance to a variable at heartbeat --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Description
Fixes this error