Implementation for websocket heartbeat

This commit is contained in:
dijunkun
2023-11-09 10:40:42 +08:00
parent eb816fc133
commit c2375b0481

View File

@@ -90,14 +90,10 @@ bool SignalServer::on_close(websocketpp::connection_hdl hdl) {
}
bool SignalServer::on_ping(websocketpp::connection_hdl hdl, std::string s) {
/* Do something */
LOG_INFO("Receive ping");
return true;
}
bool SignalServer::on_pong(websocketpp::connection_hdl hdl, std::string s) {
/* Do something */
LOG_INFO("pong");
return true;
}