mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
fix websockets
This commit is contained in:
parent
4081ea6cce
commit
2c54b54b4f
5 changed files with 30 additions and 11 deletions
|
@ -67,11 +67,13 @@
|
|||
() => console.log("closed"),
|
||||
err => console.error(err),
|
||||
msg => console.log(msg),
|
||||
"ws://localhost:9000",
|
||||
"wss://echo.websocket.events",
|
||||
[],
|
||||
"localhost"
|
||||
);
|
||||
await ws.send("data");
|
||||
while (true) {
|
||||
await ws.send("data");
|
||||
}
|
||||
} else {
|
||||
let resp = await epoxy_client.fetch("https://httpbin.org/get");
|
||||
console.warn(resp, Object.fromEntries(resp.headers));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue