diff --git a/examples/chat_client/chat_client_handler.cpp b/examples/chat_client/chat_client_handler.cpp index 38f8ff80ee..e16a5f4717 100644 --- a/examples/chat_client/chat_client_handler.cpp +++ b/examples/chat_client/chat_client_handler.cpp @@ -39,7 +39,7 @@ void chat_client_handler::on_open(session_ptr s) { std::cout << "Successfully connected" << std::endl; } -void chat_client_handler::on_close(session_ptr s,uint16_t status,const std::string &reason) { +void chat_client_handler::on_close(session_ptr s) { // not sure if anything needs to happen here either. m_session = client_session_ptr(); diff --git a/examples/chat_client/chat_client_handler.hpp b/examples/chat_client/chat_client_handler.hpp index fb90a6e7aa..0b1f0e0676 100644 --- a/examples/chat_client/chat_client_handler.hpp +++ b/examples/chat_client/chat_client_handler.hpp @@ -63,7 +63,7 @@ public: void on_open(session_ptr s); // connection to chat room closed - void on_close(session_ptr s,uint16_t status,const std::string &reason); + void on_close(session_ptr s); // got a new message from server void on_message(session_ptr s,const std::string &msg); diff --git a/examples/chat_server/chat.cpp b/examples/chat_server/chat.cpp index d346281f99..9b629b45fb 100644 --- a/examples/chat_server/chat.cpp +++ b/examples/chat_server/chat.cpp @@ -59,7 +59,7 @@ void chat_server_handler::on_open(session_ptr client) { send_to_all(encode_message("server",m_connections[client]+" has joined the chat.")); } -void chat_server_handler::on_close(session_ptr client,uint16_t status,const std::string &reason) { +void chat_server_handler::on_close(session_ptr client) { std::map::iterator it = m_connections.find(client); if (it == m_connections.end()) { diff --git a/examples/chat_server/chat.hpp b/examples/chat_server/chat.hpp index 3eb9b721ce..0ef21c325c 100644 --- a/examples/chat_server/chat.hpp +++ b/examples/chat_server/chat.hpp @@ -59,7 +59,7 @@ public: void on_open(websocketpp::session_ptr client); // someone disconnected from the lobby, remove them - void on_close(websocketpp::session_ptr client,uint16_t status,const std::string &reason); + void on_close(websocketpp::session_ptr client); void on_message(websocketpp::session_ptr client,const std::string &msg);