31 #include <websocketpp/config/asio_no_tls_client.hpp>
32 #include <websocketpp/client.hpp>
34 #include <websocketpp/common/thread.hpp>
35 #include <websocketpp/common/memory.hpp>
40 typedef websocketpp::client<websocketpp::config::asio_client> client;
44 websocket_endpoint () {
45 m_endpoint.clear_access_channels(websocketpp::log::alevel::all);
46 m_endpoint.clear_error_channels(websocketpp::log::elevel::all);
48 m_endpoint.init_asio();
49 m_endpoint.start_perpetual();
51 m_thread = websocketpp::lib::make_shared<websocketpp::lib::thread>(&client::run, &m_endpoint);
64 std::cout <<
"Enter Command: ";
65 std::getline(std::cin, input);
67 if (input ==
"quit") {
69 }
else if (input ==
"help") {
71 <<
"\nCommand List:\n"
72 <<
"help: Display this help text\n"
73 <<
"quit: Exit the program\n"
76 std::cout <<
"Unrecognized Command" << std::endl;