Skip to content

PatMan10/testing_socketIO_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integration Testing a SocketIO Server

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.

  1. Open 2 shells. (shell 1 and shell 2)
  2. Clone this REPO.
  3. Change directory into REPO with both shells.
  4. In shell 1, run "npm install" to get dependencies.
  5. In shell 1, run "npm start" to start the server.
  6. In shell 2, run "npm test" to run the automated tests.
  7. Study the output in the shells.
  8. Open REPO in your favorite code editor.
  9. Study the code, it's not a lot.
  10. Hack at it and build your own socket.io server! :)

About

This a basic socket.io server built to demonstrate a method for successfully testing the server io functionality.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published