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

yrb-actioncable sync awareness #97

Open
deantheboss opened this issue Feb 6, 2024 · 2 comments
Open

yrb-actioncable sync awareness #97

deantheboss opened this issue Feb 6, 2024 · 2 comments

Comments

@deantheboss
Copy link

The awareness development is only left as a TODO, so it is impossible to track when the client side disconnects from the socket. I was wondering if you are aware of this issue and if so, are you planning to develop it, and if not, can I raise a pull request for it?

@eliias
Copy link
Collaborator

eliias commented Feb 6, 2024

@deantheboss You usually implement Awareness client-side (https://docs.yjs.dev/api/about-awareness), but you can also access the content of the Awareness CRDT on the server. yrb has an implementation of the same data structure as well, so if you want to access the information you can → https://y-crdt.github.io/yrb/Y/Awareness.html.

The awareness development is only left as a TODO

Can you point towards the file where you found the TODO? I think it might help to add an Awareness example, but I do not necessarily think this needs to be implemented in the library.

can I raise a pull request for it?

Always welcome.

@deantheboss
Copy link
Author

deantheboss commented Feb 6, 2024

@deantheboss You usually implement Awareness client-side (https://docs.yjs.dev/api/about-awareness), but you can also access the content of the Awareness CRDT on the server. yrb has an implementation of the same data structure as well, so if you want to access the information you can → https://y-crdt.github.io/yrb/Y/Awareness.html.

thank you for reply.

The awareness development is only left as a TODO
Can you point towards the file where you found the TODO? I think it might help to add an Awareness example, but I do not necessarily think this needs to be implemented in the library.

it's on https://github.com/y-crdt/yrb-actioncable/blob/main/gems/yrb-actioncable/lib/y/actioncable/sync.rb #50

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