fix websockets

This commit is contained in:
Toshit Chawda 2024-01-15 12:50:00 -08:00
parent 4081ea6cce
commit 2c54b54b4f
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
5 changed files with 30 additions and 11 deletions

View file

@ -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));