Skip to content

python: implement additional ServerListener callbacks #240

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

Merged

Conversation

bryfox
Copy link
Contributor

@bryfox bryfox commented Feb 25, 2025

This adds additional callbacks to python's ServerListener interface: on_subscribe, on_unsubscribe, on_client_advertise, and on_client_unadvertise.

I've updated the live_visualization example to monitor subscribers. This example should be moved to foxglove-sdk-examples; I can do so as part of this PR, but it's going to create noise, so I've left it alone for now.

I did not introduce a new "channel view" type for python; there, the ID types are identical. I don't see much value in a type that differs in name only; I think the context makes it clear.

Copy link

linear bot commented Feb 25, 2025

@bryfox bryfox requested review from gasmith and eloff February 25, 2025 18:09
@bryfox
Copy link
Contributor Author

bryfox commented Feb 25, 2025

I moved the live_visualization example as noted above, and tested running locally.

@bryfox bryfox merged commit 19fc147 into main Feb 25, 2025
29 checks passed
@bryfox bryfox deleted the bryan/fg-10181-python-add-subscription-advertisement-callbacks branch February 25, 2025 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants