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

preventCompose not changing #561

Open
thisisworkspace opened this issue Apr 26, 2022 · 1 comment
Open

preventCompose not changing #561

thisisworkspace opened this issue Apr 26, 2022 · 1 comment

Comments

@thisisworkspace
Copy link

Hi,
I'm currently using shareDB for real-time editor websites.
I scaled up my server using pm2.
Since there are multiple processes, the shareDB is not sharing some of the properties.
I'm also using database adapter sharedb-mongo.
Even if I could fetch the doc object when there is an update from another process, it seems like when one process changes the preventCompose property to serialize ops, another process does not detect the change.
Is there a way to fix this? Any suggestion for this issue?
Thank you.

@alecgibson
Copy link
Collaborator

preventCompose is a property that exists on the Doc, which is the representation of a client.

As such, you'll have to set this on a per-client basis. If you need to sync this behaviour between clients for some reason, you'll need to do this manually (I guess you could do it through a mini JSON0 document?

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