NodeJS/Websocket matchmaking
- Match instant 2 players if their rankedLevel delta is equal or less than
instantMatchingRankedLevelDeltaoption value - Match two players after the waiting time of one user is equal or greater than
instantMatchingRankedLevelDeltaoption value and rankedLevel delta is equal or less thanmaxRankedLevelDeltaoption value - If the player waited more than
instantMatchingWaitingTimeof time, he is removed from the pool
npm i --dev
npm run server(compile and run the server on port 8999)- open another terminal and run
npm run test-client - On the server terminal you can see the matched users and those that waited to long and has been removed
- On the client terminal you can see the output from client websocket
npm run test