0.1.2 • Published 10 years ago

bongtalk v0.1.2

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
10 years ago

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
0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.16

10 years ago

0.0.14

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago