adds proper close status

This commit is contained in:
Peter Thorson
2013-05-05 18:43:33 -05:00
parent 971482e0b8
commit 0ff8bbfbb7

View File

@@ -73,7 +73,7 @@ public:
}
void on_message(websocketpp::connection_hdl hdl, message_ptr msg) {
m_message = std::chrono::high_resolution_clock::now();
m_endpoint.close();
m_endpoint.close(hdl,websocketpp::close::status::going_away,"");
}
void on_close(websocketpp::connection_hdl hdl) {
m_close = std::chrono::high_resolution_clock::now();