Fix bad reference argument
The reference is not needed and should not compile. It compiles on Visual Studio due to a bug.
This commit is contained in:
parent
7e28aef858
commit
9616ba022d
@ -104,7 +104,7 @@ void ClientConnection::on_fail(websocketpp::connection_hdl hdl) {
|
||||
void ClientConnection::on_open(websocketpp::connection_hdl hdl) {
|
||||
}
|
||||
|
||||
void ClientConnection::on_message(websocketpp::connection_hdl &hdl, message_ptr message) {
|
||||
void ClientConnection::on_message(websocketpp::connection_hdl hdl, message_ptr message) {
|
||||
if (message->get_opcode() != websocketpp::frame::opcode::text) {
|
||||
// If the message is not text, just print as hex
|
||||
std::cout << "<< " << websocketpp::utility::to_hex(message->get_payload()) << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user