Implementation for websocket heartbeat

This commit is contained in:
dijunkun
2023-11-09 10:40:42 +08:00
parent 7409351b66
commit 325ec69f5f
3 changed files with 52 additions and 29 deletions

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