deno/ext/websocket
Luca Casonato 97ae158610
Some checks are pending
ci / build libs (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
feat(unstable): support Deno.HttpClient in WebSocket (#30692)
This commit adds support for specifying a `Deno.HttpClient` in the
`client` field of the `WebSocketOptions` bag. This mirrors how users
pass a custom HTTP client to `fetch`.

Additionally the underlying connection for websockets are now
established through the same mechanism used for `fetch`, which
means that `WebSocket` now correctly uses HTTP proxies, like
when configuring the `HTTP_PROXY` env var.

---------

Signed-off-by: Luca Casonato <hello@lcas.dev>
2025-09-12 11:42:25 +02:00
..
autobahn chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
01_websocket.js feat(unstable): support Deno.HttpClient in WebSocket (#30692) 2025-09-12 11:42:25 +02:00
02_websocketstream.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
Cargo.toml feat(unstable): support Deno.HttpClient in WebSocket (#30692) 2025-09-12 11:42:25 +02:00
lib.rs feat(unstable): support Deno.HttpClient in WebSocket (#30692) 2025-09-12 11:42:25 +02:00
README.md Rename extensions/ directory to ext/ (#11643) 2021-08-11 12:27:05 +02:00
stream.rs chore: update to edition 2024 (#29923) 2025-07-02 17:59:39 -07:00

deno_websocket

This op crate implements the websocket functions of Deno.

Spec: https://html.spec.whatwg.org/multipage/web-sockets.html