Function leptos_use::use_websocket_with_options

source ยท
pub fn use_websocket_with_options<T, C>(
    url: &str,
    options: UseWebSocketOptions<T, HybridCoderError<<C as Encoder<T>>::Error>, HybridCoderError<<C as Decoder<T>>::Error>>,
) -> UseWebSocketReturn<T, impl Fn() + Clone + 'static, impl Fn() + Clone + 'static, impl Fn(&T) + Clone + 'static>
where T: 'static, C: Encoder<T> + Decoder<T> + IsBinary<T, <C as Decoder<T>>::Encoded> + HybridDecoder<T, <C as Decoder<T>>::Encoded, Error = <C as Decoder<T>>::Error> + HybridEncoder<T, <C as Encoder<T>>::Encoded, Error = <C as Encoder<T>>::Error>,
Expand description

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