[NodeJs] Socket.io
/** * Module dependencies. */ var express = require('express');var routes = require('./routes');var http = require('http');var path = require('path'); var app = express();app.use(express.static(path.join(__dirname, 'public'))); var httpServer =http.createServer(app).listen(8080, function(req,res){ console.log('Socket IO server has been started');});// upgrade http server to socket.io servervar i..
2015.08.26