Skip to content

Instantly share code, notes, and snippets.

@mikebrock
Created May 3, 2013 00:24
Show Gist options
  • Save mikebrock/5506451 to your computer and use it in GitHub Desktop.
Save mikebrock/5506451 to your computer and use it in GitHub Desktop.
TYPE FROM TO MUTATIONS REV STATE
--------------------------------------------------------------------------------------------------------------------------------------------
SYNC Server ClientA 0 "go"
SYNC Server ClientB 0 "go"
APPLY - ClientA [INS[1,"1"]] 0 "g1o"
APPLY - ClientA [INS[2,"2"]] 1 "g12o"
APPLY - ClientA [INS[3,"3"]] 2 "g123o"
APPLY - ClientB [INS[2,"a"], INS[3,"t"]] 0 "goat"
TRANSMIT ClientA Server [INS[1,"1"]] 0 "g123o"
TRANSMIT ClientA Server [INS[2,"2"]] 1 "g123o"
APPLY - Server [INS[1,"1"]] 0 "g1o"
TRANSMIT ClientB Server [INS[2,"a"], INS[3,"t"]] 0 "goat"
TRANSMIT Server ClientB [INS[1,"1"]] 0 "g1o"
TRANSMIT ClientA Server [INS[3,"3"]] 2 "g123o"
TRANSFORM - ClientB [INS[1,"1"]] , [INS[2,"a"], INS[3,"t"]] -> [INS[1,"1"]] 0 "goat"
APPLY - ClientB [INS[1,"1"]] 1 "g1oat"
APPLY - Server [INS[2,"2"]] 1 "g12o"
TRANSMIT Server ClientB [INS[2,"2"]] 1 "g12o"
TRANSFORM - ClientB [INS[2,"a"], INS[3,"t"]] , [INS[1,"1"]] -> [INS[3,"a"], INS[4,"t"]] 0 "g1oat"
TRANSFORM - ClientB [INS[2,"2"]] , [INS[3,"a"], INS[4,"t"]] -> [INS[2,"2"]] 1 "g1oat"
APPLY - ClientB [INS[2,"2"]] 2 "g12oat"
REWIND - Server <<>> 1 "g1o"
TRANSFORM - Server [INS[2,"a"], INS[3,"t"]] , [INS[1,"1"]] -> [INS[3,"a"], INS[4,"t"]] 0 "g1o"
TRANSFORM - Server [INS[2,"2"]] , [INS[3,"a"], INS[4,"t"]] -> [INS[2,"2"]] 1 "g1o"
TRANSFORM - Server [INS[3,"a"], INS[4,"t"]] , [INS[2,"2"]] -> [INS[4,"a"], INS[5,"t"]] 2 "g1o"
APPLY - Server [INS[2,"2"]] 2 "g12o"
APPLY - Server [INS[4,"a"], INS[5,"t"]] 2 "g12oat"
TRANSMIT Server ClientA [INS[2,"a"], INS[3,"t"]] 0 "g12oat"
REWIND - ClientA <<>> 1 "g1o"
TRANSFORM - ClientA [INS[2,"a"], INS[3,"t"]] , [INS[1,"1"]] -> [INS[3,"a"], INS[4,"t"]] 0 "g1o"
TRANSFORM - ClientA [INS[2,"2"]] , [INS[3,"a"], INS[4,"t"]] -> [INS[2,"2"]] 1 "g1o"
TRANSFORM - ClientA [INS[3,"a"], INS[4,"t"]] , [INS[2,"2"]] -> [INS[4,"a"], INS[5,"t"]] 3 "g1o"
APPLY - ClientA [INS[2,"2"]] 3 "g12o"
TRANSFORM - ClientA [INS[3,"3"]] , [INS[4,"a"], INS[5,"t"]] -> [INS[3,"3"]] 2 "g12o"
TRANSFORM - ClientA [INS[4,"a"], INS[5,"t"]] , [INS[3,"3"]] -> [INS[5,"a"], INS[6,"t"]] 3 "g12o"
APPLY - ClientA [INS[3,"3"]] 2 "g123o"
APPLY - ClientA [INS[5,"a"], INS[6,"t"]] 3 "g123oat"
TRANSFORM - Server [INS[3,"3"]] , [INS[4,"a"], INS[5,"t"]] -> [INS[3,"3"]] 2 "g12oat"
APPLY - Server [INS[3,"3"]] 3 "g123oat"
TRANSMIT Server ClientB [INS[3,"3"]] 2 "g123oat"
TRANSFORM - ClientB [INS[3,"a"], INS[4,"t"]] , [INS[2,"2"]] -> [INS[4,"a"], INS[5,"t"]] 2 "g12oat"
TRANSFORM - ClientB [INS[3,"3"]] , [INS[4,"a"], INS[5,"t"]] -> [INS[3,"3"]] 2 "g12oat"
APPLY - ClientB [INS[3,"3"]] 3 "g123oat"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment