MCPcopy Create free account
hub / github.com/Botloader/botloader / handle_ws_command_unauth

Method handle_ws_command_unauth

components/webapi/src/routes/ws.rs:171–176  ·  view source on GitHub ↗
(&mut self, cmd: WsCommand)

Source from the content-addressed store, hash-verified

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

Callers 1

handle_ws_commandMethod · 0.80

Calls 1

do_loginMethod · 0.80

Tested by

no test coverage detected