Replies: 5 comments 20 replies
-
We don't have RT working in the stand-alone project. Where are you saving your diagram to? |
Beta Was this translation helpful? Give feedback.
-
I asked a similar question but wasn't quite clear in the title (/rt and /cache implementations). In our instance, we're hosting internally (Apache/Tomcat) and using OneDrive so we have the storage side ready, just not the RT side. From a quick look at the code, it appears that /cache is used with Pusher.js, but P2PCollab.js seems to be based on Simplepeer but I haven't found any documentation on it so I'm not sure of it's status - is it still in testing or is it stable enough to use as a replacement for Pusher? I assume I need to setup a signaling server and set the RT_WEBSOCKET_URL as a start. Is there a specific signaling server that should be used and/or code to help implement this in a self-hosted environment? |
Beta Was this translation helpful? Give feedback.
-
There are three parts, the fast (real time RT) part. That's written in JS and runs on cloudflare workers. That's a sub/pub fast channel where updates go out immediately. The cache on GAE is slower. It is a correctly ordered sequence of changes that are only recorded once the client correctly writes the file. The result returned from there can be used by the client to playback changes in a different order to that received from the fast RT. https://gist.github.com/davidjgraph/9e19257bfc0d0535db0d6ab601d649dd is the cache code. The last fallback is just the file itself. If we can't resolve something, we load the currently file and apply the diff-sync. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the ideas and code provided by the author. I have implemented the function of local privatization and multi person collaboration: |
Beta Was this translation helpful? Give feedback.
-
@m-mohamedin We were looking into the docker-drawio repository and we noticed that the self-contained implementation supports real-time collaboration using AWS IoT: https://github.com/jgraph/docker-drawio/tree/dev/self-contained. In one of the steps, it is mentioned to follow the instructions in the etc/mxPusher folder to setup a lambda function for temporary keys as well as setting a role for that lambda function but we cannot locate this folder neither on the repository nor the container files. Where can we find these instructions? |
Beta Was this translation helpful? Give feedback.
-
We have the application self-hosted in our own infrastructure and we want to understand if real-time collaboration is possible as it's not currently working. Is this real-time feature implemented with Pusher API? If so, is it possible to enable if we create our own account?
Beta Was this translation helpful? Give feedback.
All reactions