mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 19:13:30 +00:00
added log feature on extension
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user