2.1.2 • Published 3 years ago

chatserverexam v2.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

chatServer

A little chat server developed upon Nodejs and TypeScript

description

This is a simple instance of chat server based on nodejs and typescript.

how

Every visitor are supposed to give an legal id, which will identify he/she.

Then broadcast every textual message you want!

usage

start

To start the server, type:

npm start

config

Open `project.config.json' to configuration.

Don't be overwhelming about the IDE's error storm of the below comments in JSON.

// Please save this file in utf-8 encoding, or do not type Chinese or other unicode charctor.
// All config is shown in this path, and none of them can be omitted.
{
  // the database path, prefix '/' (or '\' on Windows) is allowed, otherwise you shoud give it relative path
  "dbpath": "zhanghao.txt",
  // the encoding of iostream
  "encoding": "utf-8",
  // port to listen
  "port": 12000,
  // Max connection
  "maxConnection": 25,
  // Max number of accounts
  "maxAccounts": 1000
}

npm

You can type

npm install chatserverexam

to download this package

site

type

telnet cmtheit.com 12000

to join a deployed instance!

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago