Comments (5)
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.
Hi there
My client gets disconnected every 60 seconds.
Thanks
from spring-redis-websocket.
@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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-redis-websocket.