split the ws

This commit is contained in:
Toshit Chawda 2024-01-15 14:25:41 -08:00
parent 2c54b54b4f
commit 0d6bb2e8ba
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
3 changed files with 59 additions and 73 deletions

View file

@ -73,6 +73,7 @@
);
while (true) {
await ws.send("data");
await (new Promise((res, _) => setTimeout(res, 100)));
}
} else {
let resp = await epoxy_client.fetch("https://httpbin.org/get");