Borg/js/borg-stmf/stmf.wasm
Snider 269b3d6ac0 Refactor waitForWasm to use event listener instead of polling
Replaces the busy-wait polling loop in `waitForWasm` with a `borgstmf:ready` event listener.
This eliminates unnecessary CPU usage during initialization and potentially improves latency.

Also updates the `stmf.wasm` binary to ensure it contains the event dispatch logic present in `pkg/wasm/stmf/main.go`.
2026-02-02 02:47:19 +00:00

6 MiB
Executable file