Coder Social home page Coder Social logo

Comments (5)

RawSanj avatar RawSanj commented on July 20, 2024

Hi @aminmc, I haven't came across this probably because I never connected long enough.
Can you help me with the time period client disconnects?
I'll look look into it if the same happens with mine.

from spring-redis-websocket.

aminmc avatar aminmc commented on July 20, 2024

Hi there

My client gets disconnected every 60 seconds.

Thanks

from spring-redis-websocket.

RawSanj avatar RawSanj commented on July 20, 2024

@aminmc I tested my setup, I don't face any issues. I kept my app running and sending text, didn't see any disconnect.

Check if you are using the Redis Pub/Sub correctly.
Stomp will connect to a single instance and will continue to be connected to that instance until it is disconnected.

So if there are 2 instances and 2 clients get connected to 2 different instances to sync messages across these instances you'd need Redis Pub/Sub.

from spring-redis-websocket.

aminmc avatar aminmc commented on July 20, 2024

Hi there. Thanks for the update. We have a Nginx proxy in front of the multiple WebSocket servers. So my assumption is that the proxy is disconnecting the client. In terms of Redis pub/sub is there docs you can point me to?

Thanks

from spring-redis-websocket.

RawSanj avatar RawSanj commented on July 20, 2024

Hey @aminmc

Sorry for replying late.
For Nginx config you need to enable connection to switch to WebSockets.
I have that example as well, see the https://github.com/RawSanj/spring-redis-websocket/blob/master/src/main/docker/nginx.conf file.

Redis Pub/Sub doc can be found here - https://docs.spring.io/spring-data/redis/docs/2.1.3.RELEASE/reference/html/#pubsub

from spring-redis-websocket.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.