cosjs

nodejs game server framework

Usage no npm install needed!

<script type="module">
  import cosjs from 'https://cdn.skypack.dev/cosjs';
</script>

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