# Revision history [back]

### How does gazebo::transport::Publisher::HasConnections() works?

Hello, When i call this function with no subscriber subscribe to the topic, it will return false. And after a subscriber subscribe to the topic, the function will return true. But when the subscriber unsubscribe the topic, the function still return true.

Is this function working properly?
If this is not what this function is meant to do, what is the method to find out if the topic is not subscribed from a subscriber?


Is this function working properly?