如何列出所有有效订阅者的pubnub频道?

时间:2014-02-20 17:13:30

标签: pubnub

我想列出与拥有有效订阅者的订阅密钥相关联的所有渠道。有没有办法用pubnub做到这一点?我正在使用JavaScript API,如果这有任何区别。

1 个答案:

答案 0 :(得分:2)

PubNub Where Now API

返回与订阅密钥相关联的频道列表,其中包含订阅者。

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

请注意,在此帖子发布时,where_now()仅适用于+3.6 SDK版本。

相关问题