Show us the complete code for your server side JS, how you get the user object etc.
- Louis Envoyé de mon iPhone Le 2012-07-06 à 02:57, RonnieV <[email protected]> a écrit : > Hi, > > I am using APE in a multichannel mode this work perfect, however i am facing > a problem which I don't know how to solve. > > Currently I have on my server side JS a line like this: > chan.pipe.sendRaw('achievement', { content: params.data, 'pipe': > chan.pipe.toObject()}); > > And in my client side: > pipe.onRaw('achievement', function(msg, pipe) { > // do something > } > > This works, however every user on this channel is getting a message that they > made it to a new achievement but it only counts to 1 user. So I thought by > changing the following I could fix it: > user.pipe.sendRaw('achievement', { content: params.data, 'pipe': > chan.pipe.toObject()}); > > I changed chan to user but then nothing is received. Ofcourse I can do a > check in my client side JS but it would be much nicer if APE can send the raw > to only the user who has made it to the new achievement. > > How would my client side js would look like for picking up the raw? > > Thanks in advance. > > Ronnie > -- > You received this message because you are subscribed to the Google > Groups "APE Project" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/ape-project?hl=en > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ > Git Hub : http://github.com/APE-Project/ -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
