Open
Description
Hello.
I have a suggestion to add support to check the response time for the WebSocket.
Currently, there's only timeout logic which provides no details upon failure. I believe that having timeout and response time check will be more useful and provide a more comprehensive way to analyze failed checks. This approach would provide an upper bound with the timeout parameter, while also allowing for check failure based on excessive response times, thereby enabling more detailed logging and analysis.
Do it in the same way as for HTTP .check(responseTimeInMillis...)
val wsCheck = ws.checkTextMessage("checkName")
.check(
responseTimeInMillis.lte(10000)
)
exec(ws("Send").sendText("hello")
.await(30)(wsCheck))
How does sound this idea?
Thanks!