My WS scenario is to connect and authorize, which works fine. Then I just need to listen for and save incoming messages from WS - no need to send any messages to the server.
I managed to send dummy “ping” messages just to be able to add “await” with “checkTextMessage” and check/save incoming message. This way I can simulate listening for incoming messages. The only problem is the blocking nature of “await”, which causes my simulation to run even after other scenarios are already finished
A solution would be to add optional check, which would not fail even after time out. Unfortunately “optional” flag on check does not help.
Another solution would be to attach some sort of listener for incoming messages from WS server without timing out if no data is coming at all during longer periods.