HTML and CSS Reference
In-Depth Information
5.
Press F5 to debug the application. Create a shared worker and send a message to it.
it should work just like the previous exercise.
6.
Leaving the browser tab running, create a new tab and enter the same URL as the
first tab. This will open the same site in a second tab. Create a shared worker from
the second tab. Then click the Send Shared message button to test the connection.
notice the message says that you are the second client as demonstrated in
Figure 5-8 .
Figure 5-8. Opening a second copy of the page
7.
The Chrome browser has a small wrench icon at the top-right corner. Click this and
then select the Tools ➤ Task manager links to open the task manager, which should
look similar to Figure 5-9 . notice that there are two copies of your page but only one
copy of the web worker.
 
Search WWH ::




Custom Search