added log feature on extension

This commit is contained in:
Valmo Trindade
2024-12-14 21:12:56 -03:00
parent f5e35683a1
commit cfffbdf8bd
6 changed files with 44 additions and 4 deletions

View File

@@ -17,6 +17,10 @@ pub struct WsServer {
impl WsServer {
pub fn start(&self, rx: Receiver<WsCommand>) {
if let Some(ref server) = *WEBSOCKET_SERVER.lock().unwrap() {
server.stop();
}
let clients = Arc::new(Mutex::new(Vec::new()));
let clients_clone = Arc::clone(&clients);