tabex
tabex copied to clipboard
Shared workers support?
This is technically interesting thing, but probably not so useful on practice
pros
- Zero downtime of shared realtime server connection when user closes mastered tab.
cons
- More complex setup
- Need duplication of client code (server connector)
- Still needs iframe for cross-domain comm
problems to solve
- No master tab. How should we deal with it, to make work both LS and SW modes?
- If we don't emulate legacy master events, then user MUST create SW client with server connector. If we emulate legacy master events, tab (LS) clients can conflict with SW client.
- Problem not exists, if we DON'T place connector in userland - use it in router frame.
- Simplify config for single domain
- try to create SW via blob and pass it's ID trough LS or cookies (don't require user to prepare additional file).
If you need SharedWorkers support - post your use case in this ticket, with explanation, why that's really needed.