Optimising WebSocket connections with a SharedWorker

Using a SharedWorker to share a WebSocket connection Consider an online shopping site that uses a WebSocket connection to notify users of events such as order updates, the amount of people viewing the same item or the status of promotional deals. Users may typically open a few browser tabs to the same site with different products they are interested in purchasing. Without a SharedWorker each…