Comments (5)
What's the background on this? What kind of output would be sent without a user request?
from sway.
Related to #56. Currently all control output is fired off from a user originated request. The system should be able to broadcast system data as a control output without hooking into a specific request to do so.
An example would be, if we are changing colors based on something system-wide, like maybe "average interactions per second over the last minute" , that should (or, could) get broadcast at a set interval even if that number is zero (ie, if no users are interacting with it to do so).
In my head, this may just be a node pattern concern, that using a request as a trigger to fire system events and actions may not be appropriate. When sway is sitting idle I may still want an installation to be controlled.
from sway.
Oh, I see. You need a heartbeat/timer event to trigger messages to control targets that request system data. Probably use setInterval to ping an EventEmitter.
from sway.
I don't know that "request" is the right term there, but yes.
The final solution would almost certainly be an interval timer; I wonder if these get set up as channels with a user queue size of 0, maybe. That simplifies config and lets configuration reflect all signal routing rather than just some.
from sway.
Yeah, by "targets that request" I meant "targets that are declared to want system data in the config file" or somesuch.
from sway.
Related Issues (20)
- The sway server should have the capability to log events HOT 1
- Some connections from the UI appear to immediately time out HOT 1
- As a sway developer, I want the codebase to default to local IP settings HOT 17
- Sway queues should have the ability to be chained
- Sway system information should be available as a control source HOT 1
- Sway channels should have enqueue and dequeue events
- channel configuration files should be hotswappable HOT 2
- Sway UI does not load on Android browsers
- Input should be able to have a "speed" applied to it before output
- controlInterval throttle should be configurable per channel, per input source, per parameter, and per output source. HOT 1
- Standardize on js module approach.
- Sway should be able to restrict users within a location bounding box.
- Prevent Sway from ever being adapted to control a simulated lightsaber
- Move off underscore to lodash
- Refactor balancers into a balanced iterator
- Migrate to gulp from grunt
- Deprecate sway.utility
- Re-evaluate engine.io
- Monitor socket connections
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 sway.