pub fn use_ws_context_provider_json<T>(
cx: &ScopeState,
url: &str,
handler: impl Fn(T) + 'static,
)where
T: for<'de> Deserialize<'de>,Expand description
Provide websocket context with a handler for incoming JSON messages. Note that the message type T must implement Deserialize.