Hacker News new | ask | show | jobs
by qwtel 1577 days ago
Sounds like a service worker, for which there's only one active at a time for all tabs (and can communicate with them) could help with your client side issues.
1 comments

Here's an article on how to multiplex websockets [1]

It looks pretty clever, I wish more websocket frameworks like [2] supported this out of the box (with failovers for safari).

[1] https://dev.to/ayushgp/scaling-websocket-connections-using-s... [2] https://www.npmjs.com/package/hydrated-ws

This works great just not for safari since for some reason the WebKit team felt in 2015 it made since to remove SharedWorkers

https://stackoverflow.com/questions/28310501/why-did-safari-...

From the link you shared it looks like they are restoring the functionality:

https://bugs.webkit.org/show_bug.cgi?id=230382