libcurl.js/client/main.js
2024-01-02 01:25:04 -05:00

16 lines
No EOL
387 B
JavaScript

const cacert_path = "./out/cacert.peem";
const websocket_url = `wss://${location.hostname}/ws`;
function allocate_str(str) {
return allocate(intArrayFromString(str), ALLOC_NORMAL);
}
async function main() {
}
window.onload = () => {
console.log("page loaded, waiting for emscripten module load");
//Module.websocket.url = websocket_url;
Module.onRuntimeInitialized = main;
};