Function use_websocket_with_options

Source
pub fn use_websocket_with_options<Tx, Rx, C, Hb, HbCodec>(
    url: &str,
    options: UseWebSocketOptions<Rx, HybridCoderError<<C as Encoder<Tx>>::Error>, HybridCoderError<<C as Decoder<Rx>>::Error>, Hb, HbCodec>,
) -> UseWebSocketReturn<Tx, Rx, impl Fn() + Clone + Send + Sync + 'static, impl Fn() + Clone + Send + Sync + 'static, impl Fn(&Tx) + Clone + Send + Sync + 'static>
where Tx: Send + Sync + 'static, Rx: Send + Sync + 'static, C: Encoder<Tx> + Decoder<Rx> + HybridEncoder<Tx, <C as Encoder<Tx>>::Encoded, Error = <C as Encoder<Tx>>::Error> + HybridDecoder<Rx, <C as Decoder<Rx>>::Encoded, Error = <C as Decoder<Rx>>::Error>, Hb: Default + Send + Sync + 'static, HbCodec: Encoder<Hb> + Send + Sync + HybridEncoder<Hb, <HbCodec as Encoder<Hb>>::Encoded, Error = <HbCodec as Encoder<Hb>>::Error>, <HbCodec as Encoder<Hb>>::Error: Debug,
Expand description

Version of use_websocket that takes UseWebSocketOptions. See use_websocket for how to use.