node.js – Socket.IO

Dependencies npm install socket.io Server var fs = require(’fs’); var app = require(’http’).createServer( function(req, res) { // serwuj client.html fs.readFile(’client.html’, function(err, data) { res.writeHead(200); res.end(data); }); } ); app.listen(8081); var io = require(’socket.io’).listen(app);   io.sockets.on(’connection’, function (socket) { // send welcome message socket.emit(’from-server’, { date: ‘welcome to time service’ });   // send time on Read more about node.js – Socket.IO[…]

m2e + indigo

I’ve been suprised that in Eclipse Marketplace is no m2e plugin that works with Indigo right now. I saw… only juno or newer plugins. I found that this plugin version works good for me: http://download.eclipse.org/technology/m2e/releases/1.1/1.1.0.20120530-0009 (update site)