Please save me some time and use the following template. In 90% of all issues I can't reproduce the problem because I don't know what exactly you are doing, in which environment, or which y-* version is responsible. Just use the following template even if you think the problem is obvious.
Checklist
[x] Are you reporting a bug? Use github issues for bug reports and feature requests. For general questions, please use https://discuss.yjs.dev/
[x] Try to report your issue in the correct repository. Yjs consists of many modules. When in doubt, report it to https://github.com/yjs/yjs/issues/
Describe the bug
In readme we have info about synced property of WS provider with description "True if this instance is currently connected and synced with the server."
First of all, this property marked as private in typescript declaration, so we have to cast types to get value.
Well, i have checked value of this property to know current status and this property is always false.
How it work? How i can get current sync status for the document?
To Reproduce
Steps to reproduce the behavior:
Create instance of WebsocketProvider
Wait getting data for your doc
Check doc.provider.synced any time
Expected behavior
Property is reflect of current synchronization status and it's false when document is not synced and true when we got all data
Actual behavior
Property always false, so we can't know sync status
Screenshots
If applicable, add screenshots to help explain your problem.
Environment Information
Browser
y-websocket: 1.3.17, yjs 13.5.17
Additional context
I need check current sync status, so sync event is not that thing i need
Checklist
Describe the bug In readme we have info about
synced
property of WS provider with description "True if this instance is currently connected and synced with the server."First of all, this property marked as private in typescript declaration, so we have to cast types to get value.
Well, i have checked value of this property to know current status and this property is always false.
How it work? How i can get current sync status for the document?
To Reproduce Steps to reproduce the behavior:
WebsocketProvider
doc.provider.synced
any timeExpected behavior Property is reflect of current synchronization status and it's
false
when document is not synced andtrue
when we got all dataActual behavior Property always
false
, so we can't know sync statusScreenshots If applicable, add screenshots to help explain your problem.
Environment Information
Additional context I need check current sync status, so
sync
event is not that thing i need