Hi,
in my code I do not want to froze everything in order to wait for a getline.
If I comment the getline code as below then the connection ends although I haven't told so.
???
bind_events();
HIGHLIGHT("Event listeners binded :) \n")
// HIGHLIGHT(" - HINT: Type exit to stop HWs client")
// for (std::string line; std::getline(std::cin, line);) {
//
// if (line == "exit")
// {
// HIGHLIGHT("Closing...")
//
// client.sync_close();
// client.clear_con_listeners();
//
// return 0;
// }
// }
//
// return 1;