Couldn't read response in Single read sampler from signalr(.net) websocket server
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)
-
repo owner -
repo owner - marked as task
-
This issue was solved here :- https://stackoverflow.com/questions/54122668/cannot-read-text-from-net-core-signalr-server-using-single-read-sampler-in-jmet
I have another query , Is it possible to add a jmeter variable as value for the field "response timeout" in Single Read Sampler ie dynamically determine response timeout at run time?
Thanks in Advance!
-
repo owner Sure. You can use JMeter variables anywhere.
-
repo owner - changed status to closed
- Log in to comment
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
#101also? If so, can we close it?