2

I tried to implement websockets in one of the microservices in my project. However, I found out the Zuul proxy doesn't support websockets by default and jhipster developers is recommending adding websockets to gateway project as in https://github.com/jhipster/generator-jhipster/issues/7335 . Are there any better solution for this problem using a different proxy that will allow adding websockets to microservice?

Feras Odeh
  • 9,136
  • 20
  • 77
  • 121
  • 1
    Traefik supports websockets https://www.jhipster.tech/traefik/ – Gaël Marziou Jun 04 '18 at 12:12
  • 1
    One way to do it is to separate the frontend from the gateway and serve it through nginx (see https://www.jhipster.tech/separating-front-end-and-api/) then you can use nginx features to proxy websocket requests. – Pierre Besson Jun 05 '18 at 11:45

0 Answers0