gwokae / chat-server-assessment

a server for a chat room assessment

Repository from Github https://github.comgwokae/chat-server-assessmentRepository from Github https://github.comgwokae/chat-server-assessment

chat-server-assessment

A server for a chat room assessment

only tested on node @ v8.6.0 & v6.7.0

Install

git clone https://github.com/gwokae/chat-server-assessment.git
cd chat-server-assessment
npm i

Start chat server

npm start

Spcify settings

We only have port and timeout settings. These settins can configure via cli arguments.

npm start -- --port 6780 --timeout 10

Tasks

  • init basic WS support
  • init tests
  • init users db
  • init messages transmittion
  • implement inactivity behavior
  • implement disconnect behavior
  • implement avoid nickname duplication
  • check data validity (???? item #5 in the spec)
  • graceful shutdown (on SIGINT or SIGTERM)

Author

Leonard Lin

About

a server for a chat room assessment

License:MIT License


Languages

Language:JavaScript 100.0%