Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QtCore/QCoreApplication>
- #include <QtCore/QCommandLineParser>
- #include <QtCore/QCommandLineOption>
- #include "echoclient.h"
- int main(int argc, char *argv[])
- {
- using namespace Qt::Literals::StringLiterals;
- QCoreApplication a(argc, argv);
- QUrl url("ws://localhost:1234");
- qDebug() << url;
- EchoClient client(url, true);
- QObject::connect(&client, &EchoClient::closed, &a, &QCoreApplication::quit);
- return a.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement