Question

Using presence channels in Pusher (http://pusher.com), how can I get notified server side when someone connects or disconnects from a presence channel? Is it even possible? My server is running PHP.

I found a similar question on Pusher's support. Phil Leggetter who answerd said that there are two possible workarounds. But they aren't presented. Here is that question: https://pusher.tenderapp.com/discussions/questions/65-how-to-see-that-a-user-is-still-alive-on-a-private-channel

Was it helpful?

Solution

Since that support issue, Pusher have introduced presence WebHooks that allow you to listen to presence events (member_added and member_removed).

This should provide you with exactly the information you are looking for.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top