The algorithm used behind the scenes for merging collaborative edits from multiple peers is called operational transformation. It’s not trivial to implement though.
See also this question for useful links.
The algorithm used behind the scenes for merging collaborative edits from multiple peers is called operational transformation. It’s not trivial to implement though.
See also this question for useful links.