(&mut self, cmd: WsCommand)
| 169 | } |
| 170 | } |
| 171 | async fn handle_ws_command_unauth(&mut self, cmd: WsCommand) -> WsResult { |
| 172 | match cmd { |
| 173 | WsCommand::Authorize(token) => self.do_login(token).await, |
| 174 | _ => Err(WsCloseReason::NotAuthorized), |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | async fn do_login(&mut self, token: String) -> WsResult { |
| 179 | if let Some(session) = self |
no test coverage detected