mirror of
https://github.com/denoland/deno.git
synced 2025-02-07 06:54:07 -05:00
42c426e769
Implements `WebSocket` over http/2. This requires a conformant http/2 server supporting the extended connect protocol. Passes approximately 100 new WPT tests (mostly `?wpt_flags=h2` versions of existing websockets APIs). This is implemented as a fallback when http/1.1 fails, so a server that supports both h1 and h2 WebSockets will still end up on the http/1.1 upgrade path. The patch also cleas up the websockets handshake to split it up into http, https+http1 and https+http2, making it a little less intertwined. This uncovered a likely bug in the WPT test server: https://github.com/web-platform-tests/wpt/issues/42896
28 lines
738 B
TOML
28 lines
738 B
TOML
# Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
|
|
[package]
|
|
name = "deno_websocket"
|
|
version = "0.126.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
readme = "README.md"
|
|
repository.workspace = true
|
|
description = "Implementation of WebSocket API for Deno"
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[dependencies]
|
|
bytes.workspace = true
|
|
deno_core.workspace = true
|
|
deno_net.workspace = true
|
|
deno_tls.workspace = true
|
|
fastwebsockets = { workspace = true, features = ["upgrade", "unstable-split"] }
|
|
h2.workspace = true
|
|
http.workspace = true
|
|
hyper = { workspace = true, features = ["backports"] }
|
|
once_cell.workspace = true
|
|
rustls-tokio-stream.workspace = true
|
|
serde.workspace = true
|
|
tokio.workspace = true
|