How can I use a SharedWorker from another worker?

32 Views Asked by At

The docs for SharedWorker state that you can use it from other workers:

enter image description here

Except when I try to use it from either a Worker or SharedWorker context I get a ReferenceError:

enter image description here

Chrome Version 114.0.5735.106

Is there a different API I should be using to get to the SharedWorker constructor?

0

There are 0 best solutions below