Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    bongtalkpublic

    Bongtalk

    node.js web chat server.

    sample service is running at https://talk.talsu.net and http://bongtalk.herokuapp.com

    Installation

    $ [sudo] npm install bongtalk -g

    Usage

    Execute server on command line

    Usage : bongtalk -p [num] -r [url] -i [num]  -s -w -o
     
    Options:
      -p, --port        listen port
      -r, --redisurl    redis server url
      -s, --single      use only 1 process
      -w, --websocket   use websocket protocol
      -o, --socketonly  run socket.io server only
      -i, --instance    instance count for cluster mode

    Set config file (config.json)

    {
        "servicePort" : "3000",
        "redisUrl" : "redis://localhost:6379",
        "single" : true,
        "websocket" : true,
        "isSocketOnly" : false,
        "instanceCount" : 1,
        "socketIoLogLevel" : 1,
        "isDebug" : false
    }

    Example

    $ bongtalk --port 3000 --redisurl redis://talsu.net

    Connect web browser to http://localhost:3000

    Module

    var BongtalkServer = require('./BongtalkServer').BongtalkServer;
     
    var config = { 
      servicePort: 3000,
      redisUrl: 'redis://localhost',
      single: true,
      websocket: true,
      isSocketOnly: false,
      instanceCount: 1,
      socketIoLogLevel: 1,
      isDebug: false 
    };
     
    new BongtalkServer(config).run();
    // Connect web browser to http://localhost:3000 

    install

    npm i bongtalk

    Downloadsweekly downloads

    0

    version

    0.1.2

    license

    BSD-3-Clause

    repository

    github.com

    last publish

    collaborators

    • avatar