kagura::component::batch::web_socket
pub fn on_open<Msg>( url: &'static str, msg_gen: impl FnMut() -> Msg + 'static) -> Box<dyn FnOnce(Box<dyn FnMut(Msg)>)> where Msg: 'static,