To explain a bit more I’m building an open source cross platform frameworks based on Cordova Ruby and opal that can create applications, be booted and used as gui for FreeBSD but also has web mode.
I chose to test the framework with two use cases : home automation and code learning,/machine scripting.
Both use case imply needs to use background tasks.
In the first use case I need to monitor various analog inputs and send a message to connected user when a value is reach. ( ex monitoring température ) so Ruby needs to check inputs every second and refresh the connected user browsers.
In the second case user create script and when user save it user that subscribe the to the script have their background task refreshed ( ex : a new algorithm for home automation)
Anyway I’ll try both solutions, maybe roda-message_bus could partially solve the problem.
Jeremy you talk about websocket plugins isn’t it the one I already used I am a bit confused.
Luke I’ll examine your answer it’ll take make a bit of time to understand and use it but it maybe an interesting way.
The frameworks is also used to create websites, interactive video, video games, animations, and much more..using Ruby.
The state and code quality of the project is closer to a proof of concept than a production ready solution for now.
I’m not an expert programmer’ I just have the will to make it real!
Thanks for your precious help.
Cheers