win code runs

This commit is contained in:
Benjamin Sergeant
2018-10-08 21:31:02 -07:00
parent 44e5ab7f7d
commit a9ffa7da11
4 changed files with 28 additions and 9 deletions

View File

@@ -13,6 +13,7 @@
#include <sstream>
#include <queue>
#include <ixwebsocket/IXWebSocket.h>
#include <ixwebsocket/IXSocket.h>
#include "nlohmann/json.hpp"
@@ -160,11 +161,9 @@ namespace
void interactiveMain()
{
std::string user(getenv("USER"));
WebSocketChat webSocketChat(user);
std::string user("foo");
std::cout << "Type Ctrl-D to exit prompt..." << std::endl;
WebSocketChat webSocketChat(user);
webSocketChat.start();
while (true)
@@ -188,6 +187,9 @@ namespace
int main()
{
std::cout << "main starting" << std::endl;
Socket::init();
std::cout << "socket initialized" << std::endl;
interactiveMain();
return 0;
}