Skip to content

Instantly share code, notes, and snippets.

@mikebrock
Created May 3, 2013 00:29
Show Gist options
  • Save mikebrock/5506461 to your computer and use it in GitHub Desktop.
Save mikebrock/5506461 to your computer and use it in GitHub Desktop.
TYPE FROM TO MUTATIONS REV STATE
--------------------------------------------------------------------------------------------------------------------------------------------
SYNC Server ClientA 0 "The quick brown fox jumps over the lazy dog."
SYNC Server ClientB 0 "The quick brown fox jumps over the lazy dog."
APPLY - ClientA [DEL[0,"The quic..."]] 0 ""
APPLY - ClientB [INS[5,"Hello"]] 0 "The qHellouick brown fox jumps over the lazy dog."
TRANSMIT ClientB Server [INS[5,"Hello"]] 0 "The qHellouick brown fox jumps over the lazy dog."
TRANSMIT ClientA Server [DEL[0,"The quic..."]] 0 ""
APPLY - Server [INS[5,"Hello"]] 0 "The qHellouick brown fox jumps over the lazy dog."
TRANSMIT Server ClientA [INS[5,"Hello"]] 0 "The qHellouick brown fox jumps over the lazy dog."
TRANSFORM - ClientA [INS[5,"Hello"]] , [DEL[0,"The quic..."]] -> [DEL[5,"The quic..."]] 0 "HelloThe quick brown fox jumps over the lazy dog."
APPLY - ClientA [DEL[5,"The quic..."]] 1 "Hello"
TRANSFORM - Server [DEL[0,"The quic..."]] , [INS[5,"Hello"]] -> [DEL[5,"The quic..."]] 0 "HelloThe quick brown fox jumps over the lazy dog."
APPLY - Server [DEL[5,"The quic..."]] 1 "Hello"
TRANSMIT Server ClientB [DEL[0,"The quic..."]] 0 "Hello"
TRANSFORM - ClientB [DEL[0,"The quic..."]] , [INS[5,"Hello"]] -> [DEL[5,"The quic..."]] 0 "HelloThe quick brown fox jumps over the lazy dog."
APPLY - ClientB [DEL[5,"The quic..."]] 1 "Hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment