pusher-community / pusher-presence-demo

Example of using Pusher's presence functionality for a simple chat demo
http://pusher-presence-demo.herokuapp.com/
23 stars 13 forks source link

Problem in recieving the data #1

Open MakeApps opened 11 years ago

MakeApps commented 11 years ago

Event recd : {"event":"pusher_internal:subscription_succeeded","data":{"presence":{"count":2,"ids":["1","2"],"hash":{"1":{"user_name":"First User","gravatar":""},"2":{"gravatar":""}}}},"channel":"presence-chat"}

For second user, I'm not getting the "user_name":

I changed my pusher auth function

if current_user.id response = channel.authenticate(params[:socket_id], { :user_id => current_user.id, :user_info => { :user_name => current_user.name, :gravatar => '' } }) render :json => response

Please guide where to modify the script so that we will gets second user full data... with username..

mloughran commented 11 years ago

Please contact support@pusher.com for this kind of issue. Thanks

closed

On 17 Mar 2013, at 05:56, Manish Mourya notifications@github.com wrote:

Event recd : {"event":"pusher_internal:subscription_succeeded","data":{"presence":{"count":2,"ids":["1","2"],"hash":{"1":{"user_name":"First User","gravatar":""},"2":{"gravatar":""}}}},"channel":"presence-chat"}

For second user, I'm not getting the "user_name":

For I changed my pusher auth function

if current_user.id response = channel.authenticate(params[:socket_id], { :user_id => current_user.id, :user_info => { :user_name => current_user.name, :gravatar => '' } }) render :json => response

Please guide where to modify the script so that we wil gets second user full data...

— Reply to this email directly or view it on GitHub.