I’m not sure the session for the websocket is still connected to the one for the http requests.
But maybe you can set something in the session when the check succeed, so you can create a loop for sending your text “ACK” while this session value do not match that.