Fix recent build

This commit is contained in:
Alex Hultman
2022-11-30 22:21:25 +01:00
parent ca8d620268
commit 526a9ad6cd
3 changed files with 51 additions and 39 deletions
+15 -11
View File
@@ -1,16 +1,20 @@
#include "Client.h"
#include "ClientApp.h"
#include <iostream>
int main() {
uWS::Client({
.open = [](/*auto *ws*/) {
std::cout << "Hello and welcome to client" << std::endl;
},
.message = [](/*auto *ws, auto message*/) {
uWS::ClientApp app({
.open = [](/*auto *ws*/) {
std::cout << "Hello and welcome to client" << std::endl;
},
.message = [](/*auto *ws, auto message*/) {
},
.close = [](/*auto *ws*/) {
std::cout << "bye" << std::endl;
}
}).connect("ws://localhost:3000").run();
},
.close = [](/*auto *ws*/) {
std::cout << "bye" << std::endl;
}
});
app.connect("ws://localhost:3000", "protocol");
app.run();
}