Function leptos_use::use_event_source_with_options
source ยท pub fn use_event_source_with_options<T, C>(
url: &str,
options: UseEventSourceOptions<T>,
) -> UseEventSourceReturn<T, C::Error, impl Fn() + Clone + 'static, impl Fn() + Clone + 'static>
Expand description
Version of use_event_source
that takes a UseEventSourceOptions
. See use_event_source
for how to use.