mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
client websocket wrapper
remove deconstructor
This commit is contained in:
@@ -24,11 +24,6 @@ Web_socket_wrapper::Web_socket_wrapper(const QUrl &url, QObject *parent)
|
||||
m_web_socket->open(url);
|
||||
}
|
||||
|
||||
Web_socket_wrapper::~Web_socket_wrapper()
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
||||
void Web_socket_wrapper::send_command(Command c, size_t id)
|
||||
{
|
||||
json j;
|
||||
|
||||
@@ -35,7 +35,7 @@ class Web_socket_wrapper : public QObject
|
||||
|
||||
public:
|
||||
explicit Web_socket_wrapper(const QUrl &url, QObject *parent = nullptr);
|
||||
~Web_socket_wrapper();
|
||||
|
||||
void send_command(Command c, size_t id = 0);
|
||||
void send_command(Command c, QString val);
|
||||
void send_event(Event e, size_t id);
|
||||
|
||||
Reference in New Issue
Block a user