wingify / across-tabs

Easy communication between cross-origin browser tabs. Simplified "CORS"ing!

Home Page:https://engineering.wingify.com/across-tabs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elect leader and implement once?

ivanjaros opened this issue · comments

Is there any chance there can be parent/leader automatically elected after the parent is closed?

Also, is there a way to perform once() call? I need to to sync state among tabs, which is not a problem but some things I need to be done only once per user, not per window/tab and this is problematic with web workers and channels in general. Hence why having single master/parent/leader is crucial.

--

Actually electing a leader is stupid simple. But that "once" thing is a massive issue because one also needs confirmation that the tab actually executed on the message.

--

"once" is simply impossible in the current state of JS/web browsers.