leptos_use

Function use_websocket_with_options

Source
pub fn use_websocket_with_options<Tx, Rx, C>(
    url: &str,
    options: UseWebSocketOptions<Rx, HybridCoderError<<C as Encoder<Tx>>::Error>, HybridCoderError<<C as Decoder<Rx>>::Error>>,
) -> UseWebSocketReturn<Tx, Rx, impl Fn() + Clone + 'static, impl Fn() + Clone + 'static, impl Fn(&Tx) + Clone + 'static>
where Tx: 'static, Rx: '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>,
Expand description

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