I am working on a feature enabling users to “cooperate” on diagram board. I have the communication between them solved, and I will describe an example I want to achieve.
User A adds new element or move some element on the diagram board.
I have successfully hooked into eventBus “shape.created” or “elements.changed” and I have access to the elements which is being manipulated. I am sending them to the User B and now I need to invoke this action on his board and for example create new element on his board -> sync the boards.
I looked into examples and found something like
But I don’t know what should I pass to the function ( the XXX), or if this is even the right way to do this.
Any hints or examples are warmly welcomed !