Skip to main content

Crate tungstenite_get_stream

Crate tungstenite_get_stream 

Source
Expand description

Convenience trait method to match on a tungstenite::MaybeTlsStream<S> and get the underlying stream (usually std::net::TcpStream).

Note that native-tls or rustls-tls method must be enabled on this crate to access a TLS-enabled stream otherwise the methods will panic.

Traitsยง

GetStream