First, add this to your
[dependencies] websocket-transport = "0.1"
Next, add this to your crate:
extern crate websocket_transport; use websocket_transport::WsTransport;
This type automatically takes care of:
- receiving and responding to
Pings, as the
- attempting to convert
Binarymessages to UTF-8
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.