带网络插座的Zuul [英] Zuul with web socket

查看:94
本文介绍了带网络插座的Zuul的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前有直接的Websocket连接,可以连接到后端Web服务 从我们的UI应用程序.现在,当我们尝试通过Zuul(ApiGateway)进行相同操作时,我们将无法连接到后端服务 我们经历了以下无法解决问题的问题 https://github.com/spring-cloud/spring-cloud-netflix/issues/163

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

但是它在下面的链接中给了我一种选择 https://jmnarloch .wordpress.com/2015/11/11/spring-cloud-sock-js-stomp-zuul-no-websockets/ 我正在考虑将其作为最后的解决方案.

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.

我的另一个问题是,如果我们想对zuul使用websocket协议,因为我是websocket的新手,我们需要在zuul中进行哪些更改,因为我们知道spring支持websocket,并且Zuul是基于spring的服务(如果我错了,请更正)

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)

更新

据我所知,zuul 2不会提供此功能. Zuul 2将不会合并到Spring Cloud中.请参阅Spring Cloud Gateway以获取Websockets支持.检查一下( https://github.com/spring-cloud/spring-cloud-netflix/issues/163 )

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)

推荐答案

Zuul 1无法支持websocket. Zuul 2将支持它 https://github.com/Netflix/zuul/issues/112.

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

这篇关于带网络插座的Zuul的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆