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> 51 m_thread = websocketpp::lib::make_shared<websocketpp::lib::thread>(&
client::run, &m_endpoint);
55 websocketpp::lib::shared_ptr<websocketpp::lib::thread> m_thread;
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;
static level const all
Special aggregate value representing "all levels".
void init_asio(io_service_ptr ptr, lib::error_code &ec)
initialize asio transport with external io_service (exception free)
void clear_error_channels(log::level channels)
Clear Error logging channels.
void clear_access_channels(log::level channels)
Clear Access logging channels.
std::size_t run()
wraps the run method of the internal io_service object
static level const all
Special aggregate value representing "all levels".
void start_perpetual()
Marks the endpoint as perpetual, stopping it from exiting when empty.