mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
client web socket wrapper
cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user