Hi, I am using Gojs in Angular.
The scenario is when one user is viewing diagram X, and someone else is editing this diagram,
I want to re-render the changes for the viewer.
For doing that, I used socket.io for listening to updates of the diagram from the server.
When it has changed, the socket receives the nodeDataArray and linkDataArray.
Then I tried to do something like this:
this.diagramNodeData = socket.nodeDataArray; this.diagramLingData = socket.linkDataArray; this.observedDiagram.redraw();
But it is not working well.
Sometimes, the diagram re-rendered but I got an error at the console of
"Cannot read property 'layer' of null" and sometimes the view is not refreshed at all.
Can you please tell me how to do it well?