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
+28
View File
@@ -0,0 +1,28 @@
#include "MoveOnlyFunction.h"
namespace uWS {
struct WebSocketClientBehavior {
MoveOnlyFunction<void()> open;
MoveOnlyFunction<void()> message;
MoveOnlyFunction<void()> close;
};
struct Client {
Client(WebSocketClientBehavior &&behavior) {
}
Client &&connect(std::string url) {
return std::move(*this);
}
void run() {
}
};
}