问题
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)
回答1:
Zuul 1 is unable to support websockets. Zuul 2 will support it https://github.com/Netflix/zuul/issues/112.
回答2:
We have created a zuul proxy web socket support feature to resolve this issue. I will be creating a pull request in spring cloud netflix soon. The library and demo are currently hosted in github.
来源:https://stackoverflow.com/questions/39472635/zuul-with-web-socket