Couldn't read response in Single read sampler from signalr(.net) websocket server

Issue #102 closed
Former user created an issue

Hi Peter,

 Thank you for the plugin.

I am trying to read response from the web socket connection to a signalr hub server. I have tried writing text using single write sampler and it reaches the server but when I try to read a message, error is thrown at response timeout (which is quite high ~ 3 minutes).I have already put ping filter since before I had error thrown of wrong type.The text message I am trying to read is a broadcast from server to all connected clients, so I can see that the message has been received by the browser clients but the jmeter client is not getting it. Please let me know if you need any more clarifications

Comments (5)

  1. Peter Doornbosch repo owner

    Hi,

    I'm that familiar with signalr, so i don't know what's wrong. The general advice that i can give is to start by sniffing the websocket communication between a regular client (browser in your case) and the server, for example with a tool like wireshark. Probably the client is sending a websocket request first that the server is waiting for, or the HTTP request that starts the websocket connection has some special parameters / headers that the server requires before sending data back.

    Hth, Peter.

    Did you create issue #101 also? If so, can we close it?

  2. Log in to comment