Hot to repeat request after check.

I need some help here. I’m trying to make a socket.io load test, but i’m stuck on repeting request. So what i’m trying to do, is to make a request again after a check assigned to it successes or fails by timeout. I’ts easy to do with blocking wait check, but i need to use non-blocking listen check to send heartbeats. I tried to figure out a solution, but it’s not working.

.exec(session => session.set(“semaphore”, “hola”))
.during(120) {
doIf(session => session(“semaphore”).as[String].nonEmpty) {
exec(session => session.set(“semaphore”, “”))
exec(ws(“Reconciliate states”).reconciliate)
feed(mIdFeeder)
.exec(ws(“Say Hello WS”)
.sendText(message)
.check(wsListen.within(60).until(1).regex(""“5:::.+\”(text)\".+""").saveAs(“semaphore”))
)
}
.forever(
pace(15 seconds)
.exec(ws(“Heartbeat”).sendText(heartBeat))
)
}

Sorry, I don’t see any simple solution atm.