Unanswered question

Webscokets - how to keep the asynchronous connection alive

Hi, I'm having difficulties to keep websocket connection alive in asynchronous mode. It looks like that ping request has to be sent repeatedly. In order to do that I put a ping request(2probe) in a loop, but once it gets in the loop an error is received NL-WEBSOCKET-REQUEST-ENGINE

Nikolay M.
Nikolay M.

Nikolay M.

Level
0
2 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

When the WebSocket channel is opened it should remain as is till the virtual user is stopped. Do you mean that your application is regularly sending PING WebSocket request to the server? 

Are you sure that it is to keep the WebSocket channel alive? If you really need to do that, have you put your loop inside a fork action so it is played in parallel of the main thread?