문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top