Socket

Trait Socket 

Source
pub trait Socket:
    Sink<Message, Error = Error>
    + Stream<Item = Result<Message, Error>>
    + Unpin { }
Expand description

Anything that behaves like a websocket connection: the upgraded socket in the server, and an in-memory duplex in the tests.

Implementors§

Source§

impl<T> Socket for T
where T: Sink<Message, Error = Error> + Stream<Item = Result<Message, Error>> + Unpin,