it's cool to combine node.js and chrome binary via websocket. Best regards Tom
On Tuesday, February 5, 2013 5:04:26 AM UTC+8, hij1nx wrote: > > *node-chrome(3)* > A tiny module for building desktop apps. It's really simple and uses the > chrome runtime. > > *Here's the module.* > https://github.com/hij1nx/node-chrome/ > > *Here's an example.* > #!/usr/bin/env node > > var cn = require('../lib'); > > var opts = { > runtime: "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ > Chrome", > files: "./ui", > port: 8080, > index: "/index.html", > width: 1024, > height: 760 > }; > > cn(opts, function(websocket, chrome) { > > websocket.on('message', function(message) { > console.log(message); > }); > > chrome.stdout.on('data', function (data) { > > }); > > chrome.stderr.on('data', function (data) { > > }); > > chrome.on('exit', function (code) { > process.exit(0); > }); > }); > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.