simulators

Move websocket to thread
This commit is contained in:
2026-02-14 14:30:52 +01:00
parent 2e6bcce589
commit 63d6ff460b
2 changed files with 8 additions and 2 deletions
+2
View File
@@ -1,4 +1,5 @@
#pragma once
#include <QThread>
#include <map>
#include <memory>
#include <mutex>
@@ -52,6 +53,7 @@ class Simulators : public QObject
void event_handler(json event);
private:
QThread *m_server_thread;
Websocket *m_server;
std::map<std::string, std::unique_ptr<Simulator_base>> m_simulators;
std::string m_current_simulator = "";