(cobra client) send a websocket ping every 30s to keep the connection opened

This commit is contained in:
Benjamin Sergeant
2019-12-24 17:16:41 -08:00
parent 33e7271b85
commit 5be84926ef
9 changed files with 36 additions and 3 deletions

View File

@ -91,6 +91,10 @@ namespace ix
spdlog::info("Published message id {} acked", msgId);
messageAcked = true;
}
else if (eventType == ix::CobraConnection_EventType_Pong)
{
spdlog::info("Received websocket pong");
}
});
conn.connect();