-
I'm very keen to use absurd-sql for a web application I'm working on, but I'm quite confused by one issue, and it could be my inexperience talking, so my apologies in advance. I note that How do I pass data from the Worker as I normally would using |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Here is how I made it: Worker receive & send message — https://github.com/quolpr/harika/blob/d024b318b012b24a0069e46fe8af74bd191c9a61/packages/web-core/src/extensions/DbExtension/DbWorker.ts#L218 Post & receive messages from worker — https://github.com/quolpr/harika/blob/d024b318b012b24a0069e46fe8af74bd191c9a61/packages/web-core/src/extensions/DbExtension/DB.ts#L128-L141 |
Beta Was this translation helpful? Give feedback.
-
TLDR: just ignore message with |
Beta Was this translation helpful? Give feedback.
TLDR: just ignore message with
__absurd:spawn-idb-worker.
. Use postMessage/onMessage as usual