README
cosjs - a node.js http & socket server
This is a web http & socket for node.js. easy to create web or mobile game server.
Install with:
npm install cosjs
Usage
Simple example, included as demo/index.js
:
var cosjs = require('cosjs');
var config = require('./config');
cosjs.http(config);
cosjs.start();
var root = __dirname;
exports = module.exports = {
port : 80,
fnum : 0,
shell : root+'/process/http',
}
Demo
demo/index.js