Websocket sampler error when requesting for connection open without port
Hey Peter,
Is there a way to open the request for websocket without using port number?
Just a plain URL just like any other http request ?
Comments (7)
-
repo owner -
reporter Peter,
One other question is: Is there a way to keep the web socket open for 5-10 mins and keep the data flowing out onto Jmeter?
Thanks
-
repo owner Do you mean:
- keep open to enable JMeter to read data that is coming in over 5 - 10 minutes? => just keep reading (repeatedly and/or with large read timeout)
- keep open to enable JMeter to send data (which would only be necessary if sending data is stalled because of TCP flow control)? => in GUI mode, the connection stays open until you start a next test; in non-GUI mode you would need to prevent the test during these 5-10 minutes, for example by adding a sampler that just waits.
-
reporter keep open to enable JMeter to read data that is coming in over 5 - 10 minutes? => just keep reading (repeatedly and/or with large read timeout) - Yes.
-
reporter Peter,
One other quick question that was running in my mind: Is there a way to control the write sampler without placing it in for loop. I have a requirement where I just need to send in the first message and then the socket continuously streams data !
Right now I have my write and read sampler inside the thread group which keeps executing continuously because of checkbox marked for looping in thread group. please suggest
Thanks
-
repo owner So put the write sampler before the loop and the read sampler in the loop?
-
reporter - changed status to closed
Thank you for the help Peter !
- Log in to comment
No, there isn't. Just use the default http port number (80).