socketeer 0.5.0

Simplified websocket client based on Tokio-Tungstenite
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Compile-time proof that the foreign types socketeer exposes are re-exported,
//! so downstream users need no direct dependency on tungstenite/http/bytes.

#[test]
fn reexports_resolve() {
    // Each path must resolve purely through `socketeer::`.
    fn _takes_message(_: socketeer::Message) {}
    fn _takes_bytes(_: socketeer::Bytes) {}
    fn _takes_header_map(_: socketeer::http::HeaderMap) {}
    fn _takes_ws_error(_: socketeer::tungstenite::Error) {}
    fn _takes_ws_stream(_: socketeer::WebSocketStreamType) {}
}