Skip to content

Instantly share code, notes, and snippets.

@mikebrock
Created April 17, 2013 23:42
Show Gist options
  • Save mikebrock/5408671 to your computer and use it in GitHub Desktop.
Save mikebrock/5408671 to your computer and use it in GitHub Desktop.
APPLY: [Insert[1, "1"]]; on=ClientA; stateResult=["g1o"]
APPLY: [Insert[2, "2"]]; on=ClientA; stateResult=["g12o"]
APPLY: [Insert[3, "3"]]; on=ClientA; stateResult=["g123o"]
APPLY: [Delete[0]]; on=ClientB; stateResult=["o"]
TX: [Delete[0]]; from=ClientB; to=Server
APPLY: [Delete[0]]; on=Server; stateResult=["o"]
TX: [Delete[0]]; from=Server; to=ClientA
REWIND_STATE: on=ClientA; newRevision=0; stateResult=["g1o"]
APPLY: [Delete[0]]; on=ClientA; stateResult=["1o"]
APPLY: [Insert[1, "2"]]; on=ClientA; stateResult=["12o"]
APPLY: [Insert[2, "3"]]; on=ClientA; stateResult=["123o"]
TX: [Insert[1, "1"]]; from=ClientA; to=Server
APPLY: [Insert[0, "1"]]; on=Server; stateResult=["1o"]
TX: [Insert[0, "1"]]; from=Server; to=ClientB
APPLY: [Insert[0, "1"]]; on=ClientB; stateResult=["1o"]
TX: [Insert[2, "2"]]; from=ClientA; to=Server
APPLY: [Insert[1, "2"]]; on=Server; stateResult=["12o"]
TX: [Insert[1, "2"]]; from=Server; to=ClientB
APPLY: [Insert[1, "2"]]; on=ClientB; stateResult=["12o"]
TX: [Insert[3, "3"]]; from=ClientA; to=Server
APPLY: [Insert[2, "3"]]; on=Server; stateResult=["123o"]
TX: [Insert[2, "3"]]; from=Server; to=ClientB
APPLY: [Insert[2, "3"]]; on=ClientB; stateResult=["123o"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment