mirror of
https://github.com/denoland/deno.git
synced 2025-09-23 02:42:34 +00:00
![]()
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
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> |
||
---|---|---|
.. | ||
autobahn | ||
01_websocket.js | ||
02_websocketstream.js | ||
Cargo.toml | ||
lib.rs | ||
README.md | ||
stream.rs |
deno_websocket
This op crate implements the websocket functions of Deno.
Spec: https://html.spec.whatwg.org/multipage/web-sockets.html