Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for real-time communication #34

Closed
juhamust opened this issue Mar 19, 2015 · 6 comments
Closed

Add support for real-time communication #34

juhamust opened this issue Mar 19, 2015 · 6 comments

Comments

@juhamust
Copy link
Contributor

Current polling model work nicely most of the cases. However, if more accurate data is needed, the approach no longer. Thus, it should be possible for client to communicate with the client whenever needed.

Example scenario: Server side client creates a WebSocket or MQTT connection to data source. Whenever a message is received, client communicates it to all the interested widgets.

@plouc: I'm sure you have an idea how to implement this without affecting too much on the API.

@juhamust
Copy link
Contributor Author

This is also related to #4: Once the interval can be defined per backend API, it can be decreased for specific data sources. However, it remains to see how the service will work if interval is only, say 1 second?

@plouc
Copy link
Owner

plouc commented Mar 20, 2015

I think it could be saner to let the backend stream its data to the component, perhaps introducing a subscription type poll or stream|pipe without breaking the current api (poll should be default if none given). I'll try to test this approach.

@juhamust
Copy link
Contributor Author

Sounds good to me. Thanks.

@juhamust
Copy link
Contributor Author

Any progress with this?

@cybernet
Copy link

any news ?

@plouc plouc self-assigned this Apr 6, 2016
@plouc plouc added this to the v1.3.0 milestone Apr 6, 2016
@plouc plouc added the server label Apr 7, 2016
@plouc
Copy link
Owner

plouc commented Apr 7, 2016

@juhamust, @cybernet done! available in mozaik@1.3.0, see #76, for now, there's no proper documentation on how to use the feature, I must update http://mozaik.rocks/ accordingly, but I have made a simple gist to explain how to use it https://gist.github.com/plouc/5fc5d80aa74e4a6c3196a265602c509c.

And of course, if you have any feedback/issue with it, just let me know!

@plouc plouc closed this as completed Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants