rijs / fullstack

modern fullstack framework
242 stars 21 forks source link

feat: move sync to sharedworker/webworker #36

Open pemrouz opened 7 years ago

pemrouz commented 7 years ago

The sync module should be moved off the main thread into a SharedWorker (i.e. one connection across tabs), then just stream updates to the individual pages. If there is no SharedWorker, a WebWorker can be used, and if no WebWorker, then just do it on the same page (i.e. current behaviour).

pemrouz commented 7 years ago

This diagram by @tresdin in https://github.com/whatwg/html/issues/315#issuecomment-244903762 sums up the architecture really well:

image