Is this what you are looking for?
Failing that, have you considered the CRDT system used in phoenix presence?