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

Is there a way to get the status of client connection? #158

Open
abmoussaoui opened this issue Oct 20, 2023 · 1 comment
Open

Is there a way to get the status of client connection? #158

abmoussaoui opened this issue Oct 20, 2023 · 1 comment

Comments

@abmoussaoui
Copy link

Hello,

When the pulsar server go down after a succressful connection to the python client, is there a way to check if that the connection is destroyed. like for instance

a boolean: client.is_closed()

Thanks

@BewareMyPower
Copy link
Contributor

It's an internal detail and should not be exposed.

Currently, a Client is associated with a connection pool that manages connections to different brokers. It's meaningless to add an is_closed() method.

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