ws close code and reason, ws headers

This commit is contained in:
Toshit Chawda 2024-07-02 20:54:21 -07:00
parent cef912f86b
commit 0aec6e563c
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
6 changed files with 23 additions and 10 deletions

View file

@ -182,8 +182,9 @@ onmessage = async (msg) => {
);
let ws = await epoxy_client.connect_websocket(
handlers,
"wss://echo.websocket.events",
"ws://localhost:5000",
[],
{ "x-header": "abc" },
);
while (true) {
log("sending `data`");