mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
call wisp v2 extension packet handlers
This commit is contained in:
parent
ef5ed52e71
commit
b0d1038a3c
12 changed files with 974 additions and 141 deletions
|
@ -1,4 +1,5 @@
|
|||
import epoxy from "./pkg/epoxy-module-bundled.js";
|
||||
import CERTS from "./pkg/certs-module.js";
|
||||
|
||||
onmessage = async (msg) => {
|
||||
console.debug("recieved demo:", msg);
|
||||
|
@ -29,13 +30,13 @@ onmessage = async (msg) => {
|
|||
postMessage(JSON.stringify(str, null, 4));
|
||||
}
|
||||
|
||||
const { EpoxyClient, certs } = await epoxy();
|
||||
const { EpoxyClient } = await epoxy();
|
||||
|
||||
console.log("certs:", certs());
|
||||
console.log("certs:", CERTS);
|
||||
|
||||
const tconn0 = performance.now();
|
||||
// args: websocket url, user agent, redirect limit
|
||||
let epoxy_client = await new EpoxyClient("ws://localhost:4000", navigator.userAgent, 10);
|
||||
// args: websocket url, user agent, redirect limit, certs
|
||||
let epoxy_client = await new EpoxyClient("ws://localhost:4000", navigator.userAgent, 10, CERTS);
|
||||
const tconn1 = performance.now();
|
||||
log(`conn establish took ${tconn1 - tconn0} ms or ${(tconn1 - tconn0) / 1000} s`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue