my source is here.. it's simple code...
var express = require('express');
var app = express()
, http = require('http')
, server = http.createServer(app)
, io = require('socket.io').listen(server);
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(process.env.PORT, process.env.IP);
Sorry, My English is very bad. I wish you would understand.
I want express and socket with same port.
how can I ?
I'm using cloud 9 and
not error on this IDE's debug mode.