docs: function register(client) {
    const appId = client.appId;
    if (registry[appId] && !registry[appId].isDestroyed) {
      registry[appId].destroy();
    }
    registry[appId] = client;
  
    defer(() => listeners.forEach(listener => listener(client)));
  }