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

Why do we need broadcast messages to clients? #9

Open
JadenHuang2023 opened this issue Feb 15, 2025 · 2 comments
Open

Why do we need broadcast messages to clients? #9

JadenHuang2023 opened this issue Feb 15, 2025 · 2 comments

Comments

@JadenHuang2023
Copy link

logger.debug("Attempting to broadcast message to {} active sessions", sessions.size());

Why do we broadcast responses to all clients instead of just sending them to the current requesting client?

@tzolov
Copy link
Contributor

tzolov commented Feb 18, 2025

@JadenHuang2023, Thanks for the relevant question.
Some server notifications (tools/resource/prompt list changes) should be broadcast to all clients, while server requests related to Roots and Sampling should only go to the initiating client's session. Later is not implemented correctly at the moment. We'll fix this behavior soon.

@JadenHuang2023
Copy link
Author

@tzolov Thanks for your response.
The result of the tool call/tool list, etc should also only be sent to the current requesting client.

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

No branches or pull requests

2 participants