-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
Real-time process #136
Comments
Hi @clodion, thanks for your interest in My Mind! It should be noted that I am currently refatoring the codebase rather massively (see #134), so the current code shape might change quite a bit in the following days and weeks. I decided to pick Firebase as a synchronization medium, because they provided the storage and change-notification mechanism for free. If you want to implement that yourself, you will have to create the necessary server-side logic. The current implementation:
Which brings use to the corresponding remote change that is auto-magically published (Firebase) to all other listening clients:
|
Thanks so much for this detailed process description. Just one more thing to be very clear : does the merge function get ALL the map data to do its comparison or does it get only the data depending on the node (the item) which has just been changed ? |
Yes. It always gets the whole remote map data. The remote data is retrieved via the Note that some operations cannot be expressed as a per-node change: if you move around a whole subtree, you basically change the whole structure (in one action). So merging the whole map is the safest option. |
Hi Ondras, what a great job!! After looking at so many mind maps on the web i find your job as the best one available. well done!
I have a question because i would like to make it real-time possible without using firebase. I would like to do it with websockets and an express node server, but i am not as good as you are on programming. Someone tried to do the same, but i can't understand how to install its software (TQmindmap) So i have difficulties in reading the code.
What is the technology you used for real-timing your mindmap. ?
I first thought to send the changes made on one node from the user who changes the node to all users and update the same node on the map for everybody, but I read that you would have chosen another technology to update the map to everybody. Could you explain how you has done it with firebase ?
And then, which are the functions / objects used to exchange information between users ?
thanks to answer,
The text was updated successfully, but these errors were encountered: