addNode({ name, isClient, pos, peerId }) {

    const nodeData = {
      name,
      peerId,
      radius: 15,
      cx: pos ? pos[0] : 0,
      cy: pos ? pos[1] : 0,
      textColor: isClient ? '#C5C7CC' : '#636979',
    };

    anime({ targets: nodeData, radius: 30 });

    // Always push new node data as duplicates are handled by caller
    this.nodes.push(nodeData);

    if (!pos) this.updateAllPos();
  }
Adds a node to the graph
@param {String} name Name/Identifier of the node. Must be unique
@param {Array} pos Array of two elements that have location values of the node
@param {Boolean} isClient Dentoes whether the node is the current client