≈ the.bay.news

Stop Electing a Leader Tab. SharedWorker Just Holds the Connection.

DEV Community
Stop Electing a Leader Tab. SharedWorker Just Holds the Connection.
Electing a leader tab to own one shared WebSocket works great — until the leader is the tab someone closes. SharedWorker skips the election: the connection lives in the worker, not in any tab, so there's no leader to lose.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.