socket.io Server API nodejs -- socket.io, express-generator 시작 설정하기 var config = { host: ‘localhost’, port: 80 }; var app = express(); var http = require( ‘http’ ).createServer( {}, app ).listen( config.port ); var app.io = require(‘socket.io’).listen( http ); var config = { host: ‘localhost’, port: 80 }; var app = express(); var http = require( ‘http’ ).createServer( {}, app ).listen( config.po..