fshutdown / JMeter-WebSocketSampler

JMeter - WebSocket Sampler
Apache License 2.0
313 stars 186 forks source link

Is websocket testing possible from behind a corporate proxy? #55

Open ushamganesh opened 8 years ago

ushamganesh commented 8 years ago

I have read in some issues here that proxy is not supported by Jetty and hence websocket sampler proxy setting is not possible. I would like to know if that is not supported even now or should I get a newer version somewhere?

Is there an alternative to make websocket testing possible with proxy? I am able to send HTTP request and receive response successfully after configuring proxy server details.

joakime commented 6 years ago

Proxy is supported by Jetty's WebSocketClient implementation.

WebSocketClient wsclient = new WebSocketClient();
ProxyConfiguration proxyConfig = wsclient.getHttpClient().getProxyConfiguration();
HttpProxy proxy = new HttpProxy("proxyhost",proxyport);
proxyConfig.getProxies().add(proxy);