How can I list all pubnub channels with active subscribers?

时光总嘲笑我的痴心妄想 提交于 2019-12-22 12:44:11

问题


I'd like to list all channels associated with a subscribe key that have active subscribers. Is there a way to do that with pubnub? I am using the JavaScript API if that makes any difference.


回答1:


PubNub Where Now API

Return a list of channels, associated with a subscribe key, where subscribers exist.

PUBNUB.where_now( { uuid : 'optional-uuid' }, function(data) {
    console.log(data);
} );

Note at the time of this posting, where_now() is only available in +3.6 SDK versions.



来源:https://stackoverflow.com/questions/21914908/how-can-i-list-all-pubnub-channels-with-active-subscribers

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!