How to make my websocket connection is active in jmeter before it gets response from server

Issue #146 new
Former user created an issue

Problem: I am getting websocket connection closed. It is because of getting delayed response from server with in stipulated time. Actually my websocket is wait for 60 secs after that it is disconnected.

Observations: In the browser >> Network tab>> Every 15 or 20 secs we are send ping command to make it active. How to handle to make it active just like sending ping command in browser using jmeter script. Please help me.

Thanks, Seetharam

Comments (2)

  1. Peter Doornbosch repo owner

    You can use the ping/pong sampler to let JMeter send a ping (and expect a pong, you might try to send a pong, this might also work).

    If your problem is that you need to wait longer for a normal (non-ping/pong) response than the ping period, use the Read Sampler with “optional read” enabled.

    Hth.

    Peter

  2. Log in to comment