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:
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.