Skip to content

DnaBoss/chatRoom

Repository files navigation

1. app url :

*  http://lb-486731550.ap-southeast-1.elb.amazonaws.com/chat

2. config :

* limitMilliseconds => in the time intervals limit socket event request time
* actionUpperBound =>in the time intervals of limitMilliseconds, user action upper bound
* prot => server port

3. class :

 socketHandler => listen socket event and parse client side data then assign to lobby
 lobby => acording to socket event, opertion peer
 peerManager => basic manager of peer
 peer => keep socket and user data in memory

4. impression:

1. Coding Style 
2. Coding Habit
3. Can i have master the programming language of javscript

5. How to start at local:

server side start step

$ npm install
$ node main.js

http://127.0.0.1:3310/chat

6. How to test:

cd testClient
$ npm install
$ node chatClientCash.js

it can test limit request time function

7. Unit test:

$ npm mocha -g
$ npm test

7. Others:

I totally spend 9 to 10 hours
in this project, it has three main parts

1. Thinking require and design,2 hours
2. server side coding 3 hour
3. client side coding 4 to 5 hours

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published