Listing the Pub/Sub subscription consumers

2019-03-02 11:51发布

It is possible for a service to do long polling on a pub/sub subscription. That obviously requires a TCP connection to be constantly open between the pub/sub service and the client. Is there any way to find out if a certain subscription has that TCP connection open?

1条回答
放我归山
2楼-- · 2019-03-02 12:37

There is no way to list all consumers for a Pub/Sub subscription, no. This would be tough as there are three different types of subscribers: push, pull, and streaming pull. Only the last one maintains an open connection to the server.

查看更多
登录 后发表回答