Unable to read the response for an existing websocket connection

Issue #104 closed
keshav kashyap created an issue

Hi Peter

Thanks for this plugin

Am able to establish the websocket connection using open connection sampler and also am reading the response from websocket read sampler

I have a requirement where I have to send some JSON to the server using established websocket connection and am doing this with websocket write sampler

Though I get 200ok response for the JSON request am unable to capture the response that server is sending back

Can you please help

Comments (2)

  1. Peter Doornbosch repo owner

    Hi,

    The write sampler only sends a websocket message. If the server sends a response, you need to add another read sampler to get it. Alternatively, you can replace a write-sampler / read-sampler pair with a request-response sampler to simplify your test plan (on websocket level, it does the same).

    Hth, Regards Peter

  2. Log in to comment