Using, for example, ymap.observe:
ymap.observe(function(YMapEvent, Transaction)) Registers a change observer that will be called synchronously every time this shared type is modified
there seems to be at least three ways of finding out whether the change is local to this client:
- save the local
clientIDwith the value when a new value is set using
ymap.set()and check this.
Which is the best? Will they all work equivalently?