mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 14:00:01 -04:00
21 lines
No EOL
464 B
JavaScript
21 lines
No EOL
464 B
JavaScript
const wsproxy_base = "wss://anura.pro/";
|
|
|
|
function allocate_str(str) {
|
|
return allocate(intArrayFromString(str), ALLOC_NORMAL);
|
|
}
|
|
|
|
function websocket_connect(websocket) {
|
|
return new Promise((resolve, reject) => {
|
|
websocket.onopen = () => {resolve()}
|
|
websocket.onerror = () => {reject()}
|
|
})
|
|
}
|
|
|
|
async function main() {
|
|
|
|
}
|
|
|
|
window.onload = () => {
|
|
console.log("page loaded, waiting for emscripten module load");
|
|
Module.onRuntimeInitialized = main;
|
|
}; |