pub fn valid_ws_data_as_ref<T: Any>(data: &Data) -> bool
ws
fn to check if a type can be accessed in a websocket handler as reference