mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-27 00:31:35 +00:00
* Add support for PINGs and PONGs to websockets. `Connection` (formerly `BytesConnection`) now supports more structured `IncomingData` and `OutgoingData` which mirror the data types in soketto (which are not exposed). This allows adding `Connection::ping` and `Connection::pong` methods. The non-framed websocket transport defines `BytesConnection` as a wrapper around `Connection` and handles only binary data.