CoinsetterClientSession clientSession = clientSessionService.login(username, password, ipAddress);
log.info("Client session: {}", clientSession);
for (int i = 0; i < 2; i++) {
TimeUnit.SECONDS.sleep(30);
CoinsetterResponse heartbeatResponse = clientSessionService.heartbeat(clientSession.getUuid());
log.info("hearbeat: {}", heartbeatResponse);
}
CoinsetterResponse logoutResponse = clientSessionService.logout(clientSession.getUuid());
log.info("logout: {}", logoutResponse);