You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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