client web socket wrapper

cleanup
This commit is contained in:
2026-03-30 19:59:12 +02:00
parent d440a493c9
commit bc61f4990f
2 changed files with 22 additions and 60 deletions
-21
View File
@@ -128,11 +128,6 @@ class EXPORT Web_socket_wrapper : public QObject
* @param payload The CAN data payload
*/
void send_event(Event e, size_t id, uint32_t sid, uint8_t dlc, std::array<uint8_t, 8> payload);
/**
* @brief Close the WebSocket connection
*
*/
void close();
/**
* @brief Inhibit or allow sending events to the server
*
@@ -167,27 +162,11 @@ class EXPORT Web_socket_wrapper : public QObject
void log_signal(const char *filename_in, int line_in, const char *funcname_in, int level, QString msg);
private Q_SLOTS:
/**
* @brief Internal slot for handling WebSocket connection established
*
*/
void m_on_connected();
/**
* @brief Internal slot for handling WebSocket disconnection
*
*/
void m_on_received(QString message);
/**
* @brief Internal slot for handling pong responses
*
* @param elapsedTime The elapsed time since the ping was sent
*/
void m_on_pong(quint64 elapsedTime);
/**
* @brief Internal slot for handling pong timeouts
*
*/
void m_on_pong_timeout();
private:
bool m_connected = false;