mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 14:00:01 -04:00
16 lines
No EOL
387 B
JavaScript
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;
|
|
}; |