public:
WSServer(const std::string &host, int port);
- void add_init_command(const std::string &cmd);
void set_connection_callback(const std::function<void(bool)> &callback);
void send_command(const std::string &cmd);
void change_port(int port);
private:
void thread_func();
- std::vector<std::string> init_commands;
std::function<void(bool)> connection_callback;
QWebSocketServer *ws_server;