是否可以从 API 获取与推送器 (http://pusher.com/) 的事件连接数?
在他们支持的 Python 服务器库中找不到它。虽然我可以在他们基于 Web 的仪表板的统计页面上看到它,但我想在浏览器中向我的用户展示它。
最佳答案
看起来 REST API 中的 get-channel 方法有一个 subscription_count 属性:
http://pusher.com/docs/rest_api#method-get-channel
但您需要获得特殊访问权限:
[BETA] Number of connections currently subscribed to this channel. This attribute is not available by default; please contact support@pusher.com if you would like to beta test this feature.
关于pusher - 是否可以从 API 获取与 Pusher 的事件连接数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23445289/