mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 22:10:01 -04:00
initial commit
This commit is contained in:
commit
27aa9ff74c
8 changed files with 134 additions and 0 deletions
21
main.js
Normal file
21
main.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue