soundanalogous / Breakout

Breakout is a javascript library and toolkit for connecting Arduino and other IOBoards to the web
www.breakoutjs.com
MIT License
180 stars 20 forks source link

using breakout.js in node app #34

Closed rbrazileiro closed 11 years ago

rbrazileiro commented 11 years ago

Hi,

There are a way to require breakout.js in node app like jhonny-five?

I want to create an app server to handlers some breakoutjs functions like:

` app.get('/led', function(req, res) {

});

app.get('/pot', function(req, res) {

}); `

best from brazil

soundanalogous commented 11 years ago

You cannot use Breakout in a node app. Breakout.js is a client side JavaScript library. However, you could use the cosmJS (http://cosm.github.com/cosm-js/) library to publish and subscribe to streams generated client side with breakout.

If you want to create an app entirely in node.js you're better off using johnny-five.