Zuul with web socket

Brijan Elwadhi picture Brijan Elwadhi · Sep 13, 2016 · Viewed 12.2k times · Source

We currently have a direct Websocket connection that goes to a backend webservice from our UI Application. Now when we are trying to do the same through Zuul(ApiGateway) we are not able to connect to backend service We have gone through below issue that does not solve our problem https://github.com/spring-cloud/spring-cloud-netflix/issues/163

but it gives me an alternative in below link https://jmnarloch.wordpress.com/2015/11/11/spring-cloud-sock-js-stomp-zuul-no-websockets/ I am considering it as a last solution.

My other Question is, if we want to use websocket protocol with zuul what changes we need to perform in zuul as I am new to websocket because we know spring support websocket and Zuul is a spring based service (Correct if I am wrong)

UPDATE

This feature wont be available with zuul 2 as of my knowledge. Zuul 2 will not be incorporated into Spring Cloud. See spring cloud gateway for websockets support. check this out(https://github.com/spring-cloud/spring-cloud-netflix/issues/163)

Answer

spencergibb picture spencergibb · Sep 13, 2016

Zuul 1 is unable to support websockets. Zuul 2 will support it https://github.com/Netflix/zuul/issues/112.