Skip to content

SSE connection is initialized too eagerly #188

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

Open
Fabilin opened this issue Apr 17, 2025 · 0 comments · May be fixed by #189
Open

SSE connection is initialized too eagerly #188

Fabilin opened this issue Apr 17, 2025 · 0 comments · May be fixed by #189

Comments

@Fabilin
Copy link
Member

Fabilin commented Apr 17, 2025

When setting the endpoint URL in the TOCK context and enabling SSE, the connection is initialized as soon as the context component is mounted, even if no Chat component is rendered on the page (this notably happens when rendering the chatbot as a toggleable widget). This causes an unnecessary load on both the frontend and the backend, as well as a waste of bandwidth.

Fabilin added a commit to Fabilin/tock-react-kit that referenced this issue Apr 22, 2025
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 a pull request may close this issue.

1 participant