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 can I connect to other peer if there is no way of knowing its id? #62

Closed
demian85 opened this issue Jul 6, 2013 · 1 comment
Closed

Comments

@demian85
Copy link

demian85 commented Jul 6, 2013

I don't get it. Examples have no sense.
How can I get a list of the currently connected peers? Am i supposed to guess the id or what?
I thought the purpose of the server was to keep track of the connected peers. Am I missing something?

Thanks.

@richardanaya
Copy link

It's up to your application to provide a mechanism, peerjs just provides a way to connect two peers together by a fast data pipe and provide presence information on both sides. Peerjs is not a "chat room" technology where people sign up for user accounts with user names you can communicate to. If this is the system you want, its up to you to have a database with the mapping of username to whatever the latest peerjs id is.

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

3 participants