websocket sampler taking url as <servername>:<port>

Issue #128 new
Former user created an issue

I have configured websocker samplers.our application url format is wss://<servername>/<port> but in jmeter its taking as wss://<servername>:<port>.

It should take / instead of : so because of this websocket connection is not happening and finaly giving error.

How to handle to this in jmeter?

Comments (6)

  1. Jayesh Mahadik

    I have entered servername and port in different field but issue is with / and : sign.

    my application url is say echo.websocket.org/443 so I entered echo.websocket.org in servername and 443 in port field. but jmeter is taking url as echo.websocket.org:443 and its not reaching to actual destination as actual url is with / and not with : sign.

    How to handle this?

  2. Peter Doornbosch repo owner

    If your application url really is echo.websocket.org/443, than the 443 part is not the port, but the path, so in that case you should enter /443 in the Path field. As you’re using wss (secure), you should also enter 443 in the Port field.

    If 443 is the port, then the notation echo.websocket.org/443 is simply wrong and not according to URL format.

  3. Log in to comment