Flotype / now

NowJS makes it easy to build real-time web apps using JavaScript
http://www.nowjs.com
MIT License
1.91k stars 175 forks source link

How do I get the clientId on the client-side? #76

Closed seven1m closed 13 years ago

seven1m commented 13 years ago

Until there's a way to exclude clients from a broadcast everyone.now function call, I thought I would pass the id of the source client as seen by the server. Then my client side function could ignore if the client id is the same.

But alas, I can find no way for the client to determine its own client id. What am I missing?

ericz commented 13 years ago

Hi seven1m,

I've added this feature in github master. It will get pushed to npm in coming days.

To access clientId simply use now.core.clientId . Note that this will only be available after now.ready()

seven1m commented 13 years ago

Awesome, thanks!

On Fri, Apr 29, 2011 at 1:59 PM, ericz < reply@reply.github.com>wrote:

Hi seven1m,

I've added this feature in github master. It will get pushed to npm in coming days.

To access clientId simply use now.core.clientId . Note that this will only be available after now.ready()

Reply to this email directly or view it on GitHub: https://github.com/Flotype/now/issues/76#comment_1076673