support latest emscripten and detect emcc version changes

This commit is contained in:
Allen Ding 2024-11-20 12:23:02 -08:00
parent 627fd15e4d
commit b2df01fd18
7 changed files with 30 additions and 11 deletions

View file

@ -3,4 +3,12 @@ var ?opts ?= ?undefined;
*/
var parts = addr.split("/");
if (!url.endsWith("/")) url += "/";
url += parts[0] + ":" + port;
url += parts[0] + ":" + port;
/* REPLACE
url ?= ?SOCKFS\.websocketArgs\[['"]url['"]\];
*/
var parts = addr.split("/");
url = Module.websocket.url;
if (!url.endsWith("/")) url += "/";
url += parts[0] + ":" + port;