Cargo Features

ewebsock has no features set by default.

[dependencies]
ewebsock = { version = "0.7.0", features = ["tls", "tokio"] }
tls

Enables rustls-tls-webpki-roots of tungstenite

tokio

Opt-in to the tokio executor.

This adds a lot of dependencies, but may yield lower latency and CPU usage when using ws_connect.

Will ignore any ControlFlow::Break returned from the on_event callback.

Enables async-stream, futures, futures-util, tokio, and tokio-tungstenite