Tutorial for Express 3.x and socket.io

Is there a good starting tutorial combining socket.io and expressing the use of Express 3.x?

In fact, a simple chat application would be great.

The fewer lines of code used, the better.

+6
source share
1 answer

You can check out any 2.x tutorial and change the way the server starts, as this message explains: socket.io.js not found

2.XX

var app = require('express').createServer(); var io = require('socket.io').listen(app); app.listen(10000); 

3.XX

 var express = require('express') , http = require('http'); var app = express(); var server = http.createServer(app); var io = require('socket.io').listen(server); server.listen(10000); 
+4
source

All Articles