I’d like to know if it’s possible to use features only available in this mode, such as SharedArrayBuffer, in Observable. For example, here’s an attempt to use the MotherDuck WASM Client, which requires SharedArrayBuffer.
(Apologies if this is covered elsewhere. I searched but did not find the answer.)
@mootari - Following here, do you know if this is possible to do now in Framework?
Just like OP I’m trying to use MotherDuck’s WASM client, but as per their documentation it requires to set two HTTP headers: MotherDuck Wasm Client | MotherDuck Docs
Since I needed it myself, here’s an example of loading the motherduck extension in Observable:
This also avoids an ugly problem in motherduck’s wasm-client package where the client continuously spams the API with failing requests if you provide an invalid token, without any way to remedy other than to reload the page (because you can’t access the worker to terminate it).