import init, { entrypoint } from "./pkg/mumble_webtransport.js"; async function main() { console.log("Javascript!") await init() let x = await entrypoint() console.log(x); await new Promise(r => setTimeout(r, 200000)); //let y = { // algorithm: "sha-256", // value: new Uint8Array([14, 162, 111, 176, 34, 113, 218, 69, 177, 18, 13, 180, 232, 204, 49, 65, 161, 195, 36, 238, 23, 95, 174, 190, 24, 216, 105, 89, 236, 147, 206, 139]), //}; //console.log(y); //const transport = new WebTransport("https://localhost:4433/?hostname=ohea.xyz&port=64738&username=test", { // serverCertificateHashes: [ // x // //{ // // algorithm: "sha-256", // // value: new Uint8Array([14, 162, 111, 176, 34, 113, 218, 69, 177, 18, 13, 180, 232, 204, 49, 65, 161, 195, 36, 238, 23, 95, 174, 190, 24, 216, 105, 89, 236, 147, 206, 139]), // //}, // ] //}); //await transport.ready; //stream = await transport.createBidirectionalStream(); //return transport; } main() //console.log("Test"); //export default await main // // //