You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@x1unix It mentions that you are compiling to WASM build on a server. I already knew that part (I think you told me in a different discussion). I also knew you were running the WASM application on the browser.
My question is are you running the WASM build in a JS Service-worker? If so, how are you keeping it alive because Chrome shuts them down when they are idle.
@pjebs please check the Frontend part of the reply. It directly points to JS piece that executes Go program.
WASM is executed in Web Worker (not to be confused with Service Worker which is a separate thing).
Web worker shuts down right after Go program execution is finished.
This is done to avoid any memory leaks, deadlocks or any other issues.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How does the WASM version work?
Once you compile it on the server and download it, do you run it inside a service-worker?
If so, how do you keep the service-worker alive?
Beta Was this translation helpful? Give feedback.
All reactions