initial commit

This commit is contained in:
ading2210 2024-01-01 07:25:49 -05:00
commit 27aa9ff74c
8 changed files with 134 additions and 0 deletions

21
main.js Normal file
View 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;
};