Service Worker FFI
For a project using WebCrypto where all text data has to be encrypted on the client side before being sent to the server, and decrypted on the way back, using ports would have been too much overhead. Since tasks can be used to chain asynchronous work in Elm, I needed to find a way to access the WebCrypto API using a task. Inspired by this post, I started looking into the feasibility of using service workers as an interface to JavaScript. Since the app already had a service worker due to being ...
Elm