I need to implement sending a heartbeat message to a third party server with regular intervals. The server uses these heartbeat messages to determine if that th
I have the following code: std::queue< nlohmann::json > outgoingMessages; void session::do_write( void ) { if ( outgoingMessages.size() > 0 ) {