Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
seven1m opened this issue Apr 29, 2011 · 2 comments
Closed

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

seven1m opened this issue Apr 29, 2011 · 2 comments

Comments

@seven1m
Copy link

seven1m commented Apr 29, 2011

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
Copy link
Contributor

ericz commented Apr 29, 2011

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()

@ericz ericz closed this as completed Apr 29, 2011
@seven1m
Copy link
Author

seven1m commented Apr 29, 2011

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:
#76 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants