This a light, basic, node.js based, socket.io server built to demonstrate a method for successfully testing the servers socket.io functionality. It allows you to emit events, receive responses and test the responses.
Steps to get, run and see the solution.
- Open 2 shells. (shell 1 and shell 2)
- Clone this REPO.
- Change directory into REPO with both shells.
- In shell 1, run "npm install" to get dependencies.
- In shell 1, run "npm start" to start the server.
- In shell 2, run "npm test" to run the automated tests.
- Study the output in the shells.
- Open REPO in your favorite code editor.
- Study the code, it's not a lot.
- Hack at it and build your own socket.io server! :)