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:
Jack Bond-Preston 2016-07-12 21:09:48 +01:00
parent 7e28aef858
commit 9616ba022d

View File

@ -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;