Cargo Features

ewebsock has no features set by default.

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

Enables rustls-tls-webpki-roots of tungstenite >=0.17, <=0.21

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 >=0.17, <=0.21