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

Cannot find any information on Real-time simultaneous editing API. #42

Closed
NadeemShakya opened this issue Jun 9, 2020 · 2 comments
Closed
Labels
documentation Improvements or additions to documentation

Comments

@NadeemShakya
Copy link

Hey,
I am having a scenario where multiple users will be editing the same ER diagram. So, I'm working on to update real-time data for those multiple users.

I have tried polling to achieve this and works as I want it to work.

I've found out that you have provided support for Real-time simultaneous editing API, but I couldn't find any detailed documentation about it. Can you provide me a link(or any resource) for the Real-time simultaneous editing API feature?

@NadeemShakya NadeemShakya changed the title Cannot find any information on simultaneous editing API. Cannot find any information on Real-time simultaneous editing API. Jun 9, 2020
@dineug
Copy link
Owner

dineug commented Jun 9, 2020

Document is here

editor.sharePull((commands) => {
  // your send websocket -> commands data
  socket.emit('my other event', {
    commands
  });
});

socket.on('my other event', function (data) {
  editor.sharePush(data.commands);
});

@NadeemShakya
Copy link
Author

Thanks for the quick response. 👍

@dineug dineug added the documentation Improvements or additions to documentation label Sep 5, 2020
@dineug dineug closed this as completed Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants