Why are there more than one webContent items in the webContents array(Electron App)?

Description

 handle('downloads/retry', async (_webContent, itemId) => {
    const { url, webContentsId } = select(({ downloads, servers }) => {
      const { url, serverUrl } = downloads[itemId];
      const { webContentsId } =
        servers.find((server) => server.url === serverUrl) ?? {};
      return { url, webContentsId };
    });

    dispatch({
      type: DOWNLOAD_REMOVED,
      payload: itemId,
    });

    if (webContentsId) {
      webContents.fromId(webContentsId).downloadURL(url);
    }
 });

While exploring the download functionally of the electron app, I came across webContents and while getting insights on download/retry event on the main process, I am not able to comprehend what the last control statement does since I don’t understand what’s the significance of webContentsId exactly is.

I want to know if each webContent instance represents a server view or is it because of something else?

Server Setup Information

  • Version of Rocket.Chat Server: 5.0.3
  • Operating System: MacOS
  • Deployment Method: docket
  • Number of Running Instances: 1
  • DB Replicaset Oplog: -rs0
  • NodeJS Version: 16.15.1
  • MongoDB Version: 5.0.0
  • Firewalls involved: false