Need help with spring-cloud-netflix-zuul-websocket?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

mthizo247
132 Stars 73 Forks Apache License 2.0 60 Commits 17 Opened issues

Description

Zuul reverse proxy web socket support

Services available

!
?

Need anything else?

Contributors list

# 553,647
Java
5 commits
# 650,744
Java
1 commit

spring-cloud-netflix-zuul-websocket

A simple library to enable Zuul reverse proxy web socket support in spring applications.

USAGE

spring-cloud-netflix-zuul-websocket is available from Maven Central

  com.github.mthizo247
  spring-cloud-netflix-zuul-websocket
  1.0.0-RELEASE

Who is this for?

This is for anyone using Spring Netflix Zuul to proxy requests to back-ends which supports web sockets but the proxy layer does not. Netflix Zuul does not natively support web sockets.

How do I use this?

Enable it like so:

@SpringBootApplication
@EnableZuulWebSocket
@EnableWebSocketMessageBroker
public class ProxyApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProxyApplication.class, args);
    }
}

Then in your spring application properties(e.g application.yml)

server:
  port: 7078

zuul: routes: hello: path: /** url: http://localhost:7079 customSensitiveHeaders: true ws: brokerages: hello: end-points: /ws brokers: /topic destination-prefixes: /app

With this you should have web sockets to your back-end service working correctly.

Checkout this demo

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.