README: add note about streaming and ws_stream_tungstenite

pull/71/head
Josh Triplett 4 years ago committed by Sebastian Dröge
parent 8aa7427b84
commit 95e23ee155
  1. 11
      README.md

@ -48,6 +48,17 @@ integration with various other crates can be enabled via feature flags
* `gio-runtime`: Enables the `gio` module, which provides integration with * `gio-runtime`: Enables the `gio` module, which provides integration with
the [gio](https://gtk-rs.org) runtime. the [gio](https://gtk-rs.org) runtime.
## Messages vs Streaming
WebSocket provides a message-oriented protocol, and this crate supports sending
and receiving data in messages; protocols built on WebSocket are allowed to
make message boundaries semantically significant. However, some users of
WebSocket may want to treat the socket as a continuous stream of bytes. If you
know the sending end does not place significance on message boundaries, and you
want to process a stream of bytes without regard to those boundaries, try
[`ws_stream_tungstenite`](https://crates.io/crates/ws_stream_tungstenite),
which builds upon this crate.
## tokio-tungstenite ## tokio-tungstenite
Originally this crate was created as a fork of Originally this crate was created as a fork of

Loading…
Cancel
Save