//! # User WebSocket actions //! //! This module contains all the base action that can be executed by the WebSocket use crate::data::base_request_handler::BaseRequestHandler; use crate::data::error::Res; use crate::data::user_ws_request_handler::UserWsRequestHandler; /// Update incognito status of the connection pub fn set_incognito(r: &mut UserWsRequestHandler) -> Res { let new_state = r.post_bool("enable")?; r.update_conn(|c| c.incognito = new_state)?; r.success("Updated.") }