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>
Expand description
Version of use_websocket
that takes UseWebSocketOptions
. See use_websocket
for how to use.