Feb 23, 2023
Your approach sounds pretty cool! I never tried but if you ultimately implement it, I would like to see the resulting code.
In comparison to my blog post, what I now generally do, is obfuscating the web worker interactions within a service function. That way my components just know about the functions that are exposed and know nothing about postMessage in and out.
e.g. this worker I use to synchronize the authentication in my project Juno
Thanks for the feedback Ray!