Crate tokio_tungstenite_typed

source ·
Expand description

§Feature flags

The following features are available:

  • json: Enables TextJsonCodec and BinaryJsonCodec which encodes message as JSON using serde_json. Enabled by default.
  • msgpack: Enables [MsgPackCodec] which encodes message as MessagePack using rmp-serde.
  • native-tls, rustls-tls-native-roots, rustls-tls-webpki-roots: Enables the specified tls backend in tungstenite



  • Errors that can happen when using this library.
  • A WebSocket message contain a value of a known type.
  • Specifies if the message should be encoded/decoded as text or binary for transmission over the wire


  • Trait for encoding and decoding WebSocket messages.