pusher / chatkit-client-js

JavaScript client SDK for Pusher Chatkit
https://pusher.com/chatkit
MIT License
90 stars 15 forks source link

Presence state #162

Closed alexey13 closed 4 years ago

alexey13 commented 5 years ago

Good day, guys! Is it possible to get presence state of the user that we do not share a room? By client js sdk or server side php sdk? I saw that one and tried to subscribe from client but its not working https://pusher.com/docs/chatkit/reference/presence need to use it from server sdk? Use case - show status of a user(s) before we create a room

alexey13 commented 5 years ago

Hi! Any ideas on this one? I made a request from client js sdk with 200 response, but no messages in ws or response. How its working https://pusher.com/docs/chatkit/reference/presence?

syrsly commented 5 years ago

Have the users join a room together and have separate rooms as well. You can then have them check the shared channel for other users' states. Alternatively, you can code a connect/disconnect private channel if you have a ton of users and just use that to update the connection status of users but not the disconnect and then expire their connections after a while.

minaorangina commented 4 years ago

Hi, this isn't something we support right now, I'm adding it as a feature request

minaorangina commented 4 years ago

Duplicate of #208, will close this one