Comments (9)
@tomav, there's a WIP which should fix your problem, now you'll have a notification when the ws connection is broken, then the frontend will attempt to reconnect it 10 times each 15 seconds, see #77.
from mozaik.
I'm running my dashboard in a docker container.
When a change is done to configuration, a new image is built and deployed.
This mean that the server restarts but doesn't know that some clients were connected, so there's no data polling, and no update on connected clients.
When using a dashboard on a TV (without easy access to keyboard/mouse), it's a big problem.
Each client has to refresh the page to get futures updates (new widget added if conf changed, and also existing widget updates is a build status changed).
The purpose of this issue is to fix this behaviour?
from mozaik.
@tomav, yes it is, but there's another problem with disconnected clients.
This one isn't easy to solve because I made the (questionable) choice of having a javascript based config file, so it's loaded as a simple module (using require
) which cache it, I've fixed it for styles generation when you change the theme
(see https://github.com/plouc/mozaik/blob/master/gulp/tasks/styles.js#L17), but I'm not very found of this hack. Switching to json could ease it, but it won't be BC.
I've thought of another approach, abstracting the config so you could have for example a json based config, or having it stored in RethinkDB or whatever, but I think it'll require a lot of work.
I'll think more seriously about it, I agree it's a big issue when you use it on TV (which is one of the purpose of this tool :/).
from mozaik.
Great!
from mozaik.
@tomav available in [email protected]
from mozaik.
Upgrading! Thank.
from mozaik.
@tomav 1.4.1, there's a bug in 1.4.0
from mozaik.
Ok.
from mozaik.
Works great! 👍
from mozaik.
Related Issues (20)
- [Enhancement] Keyboard support to switch dashboards (space, left, right) HOT 1
- [Enhancement] Serve multiple dashboards based on config file HOT 1
- Navigation between dashboards HOT 3
- build failed when jsx syntax added HOT 1
- error while using widget ui component HOT 1
- Display json data
- Extension Tutorial for V2 HOT 1
- External/Automatic reload of Dashboard configuration HOT 1
- Proxy error: Could not proxy request /config from localhost:3000 to http://localhost:5000. HOT 1
- Demo disappears after a few seconds, then returns... HOT 1
- Insert JS in widget or dashboard
- how to run Mozaik with ASP Core backend HOT 3
- Error in npm-install mozaik demo.
- engine.io client requires ES6 to build HOT 3
- Demo is down HOT 1
- Is the demo down? HOT 1
- localhost:5000 refused to connect postman windows 64bit
- Proxy error: Could not proxy request /api/products/top from localhost:3000 to http://localhost:8000/. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
- Proxy error: Could not proxy request /api/workouts from localhost:3001 to http://localhost:3001/ (ECONNREFUSED).
- Demo hosted on Heroku doesn't work HOT 1
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 mozaik.