Add some initial client stuff

This commit is contained in:
Alex Hultman
2022-11-26 07:36:01 +01:00
parent c8229b5781
commit ca8d620268
3 changed files with 45 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
#include "Client.h"
#include <iostream>
int main() {
uWS::Client({
.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();
}