-
Notifications
You must be signed in to change notification settings - Fork 97
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 to get the connected peers details? #106
Comments
The peer awareness feature is not yet fully implemented. We were thinking about how to pass additional information of the client. Since Yorkie is not yet released to users, we are trying to design an API while implementing an example(CodePair). Do you have any good ideas? |
I've setup a demo on my experiments for this in https://habibrosyad.github.io/yorkie-js-sdk/ (Quill demo with peers), where you could set your own username with query param To add peer details, I use an additional This is just a rough experiment, and I'm not sure yet that this is an ideal approach. The changes that I've made for this can be seen in habibrosyad/yorkie@14ed7e1 and habibrosyad@0111683. |
@habibrosyad While looking at the experiment, I was wondering how to get client meta info from |
@hackerwins I think I've got a better approach than the previous one. I play around with the The changes made for this can be seen here in yorkie and yorkie-js-sdk. Should I make a PR for this issue? |
@habibrosyad Cool! 👍 It seems to be much lighter than the previous approach. If you create PRs(yorkie and yorkie-js-sdk), I will review it with other members. |
@habibrosyad |
sure 👍 |
Thanks for the amazing works.
I've just started experimenting with yorkie and stumbled upon an issue. I noticed that we can display peers accessing a document in realtime (as found in this example). However, it is limited to get the peer ids (the id which is returned by the agent on client activation).
Is there a way to get more details (perhaps the key used on activation)?
My use case is that I'm trying to build a real time text editor, similar with Google Docs. I would like to display all user names accessing the document (not just the ids). I'm thinking of putting the client's key with the user id, so that I could retrieve more details (e.g. username) later in the other connected peer sessions. However, I could not find out how to do that. Maybe I'm missing something here.
The text was updated successfully, but these errors were encountered: