summaryrefslogtreecommitdiff
path: root/examples/echoclient/echoclient.h
blob: 7d3033e214ea8fc35b310649fc921dedcaf1a6be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef ECHOCLIENT_H
#define ECHOCLIENT_H

#include <QObject>
#include "qwebsocket.h"

class EchoClient : public QObject
{
    Q_OBJECT
public:
    explicit EchoClient(const QUrl &url, QObject *parent = Q_NULLPTR);

Q_SIGNALS:

public Q_SLOTS:

private Q_SLOTS:
    void onConnected();
    void onTextMessageReceived(QString message);

private:
    QWebSocket m_webSocket;
};

#endif // ECHOCLIENT_H