Is it possible to get number of active connections with Pusher from API

StackOverflow https://stackoverflow.com/questions/23445289

  •  14-07-2023
  •  | 
  •  

質問

Is it possible to get number of active connections with Pusher (http://pusher.com/) from the API?

Can't find it in the their Python server library they're supporting. I can see it on the stats page in their web based dashboard though, but I want to present it to my users in the browser.

役に立ちましたか?

解決

Looks like there's a subscription_count attribute to the get-channel method in the REST API:

http://pusher.com/docs/rest_api#method-get-channel

but you will need to get special access:

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top