mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-11-12 02:27:35 +00:00
The http copy of the page (it can reach a node's plain ws://) is never cross-origin isolated, so it has no SharedArrayBuffer and no pthreads. web/build.sh web-nothreads (also built by web) makes a second bundle with WADA_NO_THREADS: the FreeRTOS tasks are Emscripten fibers (Asyncify) run after each UI step, every wait a yield point (freertos_coop.cpp); delay, yield and esp_timer follow; HTTP from a task is an async fetch it waits for. The page loads nt/wadamesh.js when it is not isolated (serve.py serves nt/), and never shows developer hints off localhost. Chooser: on http, Wi-Fi with a link to the https copy for USB, Bluetooth and the location; on https, "Open the Wi-Fi version" opens the http copy with the address (#wifi=...), and a ws:// connect that fails there as mixed content (or times out) explains it with the same button. Checked against http://<LAN IP>: the browser tour (persistence, tiles, Store, backups) and the mock-node tour pass on the no-threads bundle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>