;

    serverConnectedUrl = serverUrl;
    rig.menuMesh.listMesh.updateList();
  };
  xrmp.onclose = () => {
    console.log('server close', serverUrl);

    xrmp = null;
    serverConnectedUrl = null;
    rig.menuMesh.listMesh.updateList();
  };
  xrmp.onobjectadd = objectMesh => {
    const {object} = objectMesh;
    const {id, state} = object;
    if (!tabs.some(tab => tab.id === id)) {
      const {url, d} = state;
      _openUrl(url, undefined, undefined, undefined, d, false, id);
      _bindObject(obj