libcurl.js/client/index.html
2024-01-29 15:40:17 -05:00

17 lines
No EOL
439 B
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="data:;base64,=">
<script defer src="./out/libcurl.js" onload="libcurl.load_wasm('/out/libcurl.wasm');"></script>
<script>
document.addEventListener("libcurl_load", ()=>{
libcurl.set_websocket(`wss://${location.hostname}/ws/`);
console.log("libcurl.js ready!");
});
</script>
</head>
<body>
<p>emscripten tests</p>
</body>
</html>