10 using websocketpp::lib::placeholders::_1;
    11 using websocketpp::lib::placeholders::_2;
    12 using websocketpp::lib::bind;
    21                     "Text Message Received: "+msg->get_payload());
    28         s->
send(hdl, msg->get_payload(), msg->get_opcode());
    29     } 
catch (
const websocketpp::lib::error_code& e) {
    31                     "Echo Failed: "+e.message());
    48         log.open(
"output.log");
    53         s.register_ostream(&std::cout);
    73         bool buffered_io = 
false;
    80             while(std::cin.
get(a)) {
    86         std::cout << e.
what() << std::endl;
 static level const all
Special aggregate value representing "all levels". 
 
void write(level, std::string const &)
Write a string message to the given channel. 
 
websocketpp::config::asio_tls_client::message_type::ptr message_ptr
 
websocketpp::server< websocketpp::config::core > server
 
static level const app
Special channel for application specific logs. Not used by the library. 
 
connection_type::message_ptr message_ptr
Type of message pointers that this endpoint uses. 
 
lib::weak_ptr< void > connection_hdl
A handle to uniquely identify a connection. 
 
alog_type & get_alog()
Get reference to access logger. 
 
std::string to_hex(std::string const &input)
Convert std::string to ascii printed string of hex digits. 
 
virtual char const * what() const 
 
static level const disconnect
One line for each closed connection. Includes closing codes and reasons. 
 
server::message_ptr message_ptr
 
Server endpoint role based on the given config. 
 
void set_access_channels(log::level channels)
Set Access logging channel. 
 
elog_type & get_elog()
Get reference to error logger. 
 
connection_ptr get_connection()
Create and initialize a new connection. 
 
void clear_access_channels(log::level channels)
Clear Access logging channels. 
 
connection_type::ptr connection_ptr
Type of a shared pointer to the connections this server will create. 
 
void on_message(server *s, websocketpp::connection_hdl hdl, message_ptr msg)
 
void set_message_handler(message_handler h)
 
void send(connection_hdl hdl, std::string const &payload, frame::opcode::value op, lib::error_code &ec)
Create a message and add it to the outgoing send queue (exception free) 
 
static level const connect
Information about new connections.