Skip to content

Commit

Permalink
Add permessage-deflate support
Browse files Browse the repository at this point in the history
  • Loading branch information
kazk committed Sep 15, 2021
1 parent d566387 commit 4133a28
Show file tree
Hide file tree
Showing 8 changed files with 621 additions and 577 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
target
Cargo.lock
autobahn/client/
autobahn/server/
11 changes: 9 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ rustls-tls-native-roots = ["__rustls-tls", "rustls-native-certs"]
rustls-tls-webpki-roots = ["__rustls-tls", "webpki-roots"]
__rustls-tls = ["rustls", "tokio-rustls", "stream", "tungstenite/__rustls-tls", "webpki"]
stream = []
deflate = ["tungstenite/deflate"]
# deflate-zlib = ["tungstenite/deflate-zlib"]

[dependencies]
log = "0.4"
Expand All @@ -32,7 +34,8 @@ pin-project = "1.0"
tokio = { version = "1.0.0", default-features = false, features = ["io-util"] }

[dependencies.tungstenite]
version = "0.15.0"
git = "https://github.com/kazk/tungstenite-rs"
branch = "permessage-deflate"
default-features = false

[dependencies.native-tls-crate]
Expand Down Expand Up @@ -72,7 +75,11 @@ env_logger = "0.7"

[[example]]
name = "autobahn-client"
required-features = ["connect"]
required-features = ["connect", "deflate"]

[[example]]
name = "autobahn-server"
required-features = ["deflate"]

[[example]]
name = "client"
Expand Down
Loading

0 comments on commit 4133a28

Please sign in to comment.