Websocket sampler error when requesting for connection open without port

Issue #81 closed
Anil Tanakala created an issue

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)

  1. Anil Tanakala 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

  2. Peter Doornbosch 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.
  3. Anil Tanakala 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.

  4. Anil Tanakala 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

  5. Log in to comment