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