mirror of
https://github.com/kunkundi/crossdesk-server.git
synced 2026-04-18 00:22:34 +08:00
Implementation for websocket heartbeat
This commit is contained in:
@@ -90,14 +90,10 @@ bool SignalServer::on_close(websocketpp::connection_hdl hdl) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool SignalServer::on_ping(websocketpp::connection_hdl hdl, std::string s) {
|
bool SignalServer::on_ping(websocketpp::connection_hdl hdl, std::string s) {
|
||||||
/* Do something */
|
|
||||||
LOG_INFO("Receive ping");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SignalServer::on_pong(websocketpp::connection_hdl hdl, std::string s) {
|
bool SignalServer::on_pong(websocketpp::connection_hdl hdl, std::string s) {
|
||||||
/* Do something */
|
|
||||||
LOG_INFO("pong");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user