# Multiple Web Browser sections in web-project-templates-master project

**URL:** https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224
**Category:** Support
**Created:** [November 19, 2021, 4:54pm UTC](https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224 "2021-11-19T16:54:19Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [November 19, 2021, 4:54pm UTC](https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224/1 "2021-11-19T16:54:20Z")

</div>

Dear All,

In the example web-project-templates-master when are open multiples sections in browsers the resources in the server are replicated each time. (with only one section in the server)

Can the example be configured for a single web browser section? And the last open web browser section takes control?

Thanks,

Luís Gonçalves

---

<div class="post-metadata">

### Author: ![Drew\_Lazzeri](https://discourse.vtk.org/user_avatar/discourse.vtk.org/drew_lazzeri/32/3989_2.png) [@Drew\_Lazzeri](https://discourse.vtk.org/u/Drew_Lazzeri)
#### Post date: [November 19, 2021, 5:53pm UTC](https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224/2 "2021-11-19T17:53:06Z")

</div>

Hi Luís,

I’m having trouble understanding your description of the what you want. Is this correct?

You want to have multiple browser sessions which can see a visualization from a server, but only one browser session which can control the visualization.

If this is what you want, it is possible with paraview web. I would recommend building two web clients; one that can only view the visualization, and the other which can control it. Both clients would be configured to connect to the same server.

Is this the problem you are trying to solve?

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [November 19, 2021, 6:00pm UTC](https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224/3 "2021-11-19T18:00:58Z")

</div>

In this example, I have a server session. When I open in two different browsers (clients) with the same IP and Port the resources in server are replicated (two cone resources. In my case I have more heavy images). Are there some configuration parameters to allow a single client and because of that the resources are not replicated?

---

<div class="post-metadata">

### Author: ![Drew\_Lazzeri](https://discourse.vtk.org/user_avatar/discourse.vtk.org/drew_lazzeri/32/3989_2.png) [@Drew\_Lazzeri](https://discourse.vtk.org/u/Drew_Lazzeri)
#### Post date: [November 19, 2021, 7:45pm UTC](https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224/4 "2021-11-19T19:45:42Z")

</div>

I’m still unsure, but it seems you want to have multiple browsers collaborate on the same server resources. Is that right? To share resources in the server, so the clients see and control the same shared visualization, your clients will need to share the same sessionURL. By default, the launcher creates a new session (replicating your heavy images) with a new sessionURL for every client.

Your question helped me uncover a bug which broke shared visualizations, but is now fixed. Thank you! If you are using the vtk web example, `pip install wslink --upgrade` should get you wslink 1.1.1 with the fix.

If your are using paraview however, you will need to patch according to wslink according to [this diff](https://github.com/kitware/wslink/compare/v1.1.0...v1.1.1).  
You can find the file to patch at `paraview-5.10/lib/python3.9/site-packages/wslink/backends/aiohttp/ __init__.py` and `paraview-5.10/lib/python3.9/site-packages/wslink/publish.py`.

---

<div class="post-metadata">

### Author: ![Drew\_Lazzeri](https://discourse.vtk.org/user_avatar/discourse.vtk.org/drew_lazzeri/32/3989_2.png) [@Drew\_Lazzeri](https://discourse.vtk.org/u/Drew_Lazzeri)
#### Post date: [November 20, 2021, 4:10pm UTC](https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224/5 "2021-11-20T16:10:38Z")

</div>

I’ve edited my last answer to make it clearer that I was talking about multiple browser sessions collaborating, so they see and control the same data.

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [November 20, 2021, 4:39pm UTC](https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224/6 "2021-11-20T16:39:00Z")

</div>

I have Paraview 5.8.

---

<div class="post-metadata">

### Author: ![Drew\_Lazzeri](https://discourse.vtk.org/user_avatar/discourse.vtk.org/drew_lazzeri/32/3989_2.png) [@Drew\_Lazzeri](https://discourse.vtk.org/u/Drew_Lazzeri)
#### Post date: [November 30, 2021, 6:41pm UTC](https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224/7 "2021-11-30T18:41:57Z")

</div>

Hi Luís,

With paraview 5.8 there should be no trouble.

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [December 14, 2021, 2:38pm UTC](https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224/8 "2021-12-14T14:38:05Z")

</div>

Sorry, my late answer.

Does happen also in Paraview 5.8. Each time I load the page it doubles the size of OpenGL in GPU (headless).

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [December 14, 2021, 6:38pm UTC](https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224/9 "2021-12-14T18:38:11Z")

</div>

Each process is independent from each other and therefore, files will be loaded many times (1 per client). If you want to be conservative, you can build a single application that can serve several clients, but that could be tricky to manage.

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.vtk.org/user_avatar/discourse.vtk.org/luis_carlos_carneiro/32/1360_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.vtk.org/u/Luis_Carlos_Carneiro)
#### Post date: [December 14, 2021, 6:58pm UTC](https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224/10 "2021-12-14T18:58:40Z")

</div>

But it happens with the same browser. If you start in the browser and you reload the browser link the resources doubles. Same browser and same tab, only reload the link with ctrl-R, Firefox.

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [December 14, 2021, 8:35pm UTC](https://discourse.vtk.org/t/multiple-web-browser-sections-in-web-project-templates-master-project/7224/11 "2021-12-14T20:35:41Z")

</div>

yes exactly, that is precisely the expected behavior.
