【文件属性】:
文件名称:woot-crdt:使用WOOT复制文本和序列
文件大小:12KB
文件格式:ZIP
更新时间:2021-02-02 19:20:56
editor p2p crdt P2PJavaScript
woot-crdt
您可能应该使用 。
通过网络复制文本或序列。
允许无限数量的作者通过任意网络实时协作处理文本。
使用WOOT CRDT算法: ://ieeexplore.ieee.org/document/5158449/
例
var w1 = new Woot ( 'site1' )
var w2 = new Woot ( 'site1' )
// send sync messages between peers
w1 . on ( 'operation' , ( op ) => {
// send through your network (high latency, out-of-order, more-than-once delivery is fine!)
w2 . receive ( op )
} )
w2 . on ( 'operation' , ( op ) => {
w1 . receive ( op )
} )
// make concurrent changes
w1 . insert ( 'abc' , 0 )
w2 . insert (
【文件预览】:
woot-crdt-master
----.travis.yml(67B)
----package.json(503B)
----test()
--------basic.js(6KB)
----dist()
--------woot.js(18KB)
----src()
--------w-char.js(186B)
--------w-string.js(6KB)
--------identifier.js(426B)
--------sequence.js(1KB)
----.gitignore(12B)
----README.md(3KB)