You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
presenceChannel.bind('pusher:subscription_succeeded', function() {
var me = presenceChannel.members.me;
var userId = me.id;
var userInfo = me.info;
});
However it seems that the userInfo is missing for the user (always null). Looking at presence_channel.js line:34 it only saves the channelData.user_id and nothing else. Is this a bug and should it save the userinfo as well? or did I miss something?
Thanks for your help
The text was updated successfully, but these errors were encountered:
Everything works for me, we've got integration tests for presence channels. The method on line 34 only sets the connection's ID and the data is assigned when the subscription event is received from Pusher:
If the member's info is sent correctly to Pusher, it should be accessible via members.me. Are you sure you are responding from auth in a correct format?
Thanks for the prompt reply, I had another look at the auth code as you have suggested. And you're absolutely right, the formatting was off hence info was not populated.
From the docs (http://pusher.com/docs/authenticating_users#/lang=py-gae) it says that you can add user info to the auth response. It should be accessible in client via
http://pusher.com/docs/client_api_guide/client_presence_channels#pusher-member-added
However it seems that the userInfo is missing for the user (always null). Looking at presence_channel.js line:34 it only saves the channelData.user_id and nothing else. Is this a bug and should it save the userinfo as well? or did I miss something?
Thanks for your help
The text was updated successfully, but these errors were encountered: