title: How to wait until I get a specific response in jmeter?
body: <p>I'm doing load testing using JMeter for my gaming application.</p>
  
  <p>First I log in my application by HTTP request and then enter into the game(it is a WebSocket connection).</p>
  
  <p>I successfully hit Websocket and able to send the request and receive a response.
  Iam using  WebSocket Samplers by Peter Doornbosch.WebSocket request-response Sampler captures one response at a time.</p>
  
  <p>But in my application for a single request <strong>five</strong> JSON response is returned by the server. I need to capture those five responses. so I used WebSocket read sampler.</p>
  
  <p>If I hit that WebSocket by increasing thread count most of the test cases are failed because of timer issue.</p>
  
  <p>Jmeter sends the next request without waiting for previous reponse.</p>
  
  <p>In my application, if one game ends, then the response is sent by the server. After receiving that only next game request must hit.</p>
  
  <p>But the next game request hit the server before the current game ends. can please help me to sort this issue????</p>