A super simple example of a NodeJS + SocketIO server and client
This acts more of a boilerplate/reminder for toy projects
git clone https://github.com/m3talstorm/socketio-simple-server.git
cd socketio-simple-server/
sudo npm install
// Start the server
sudo npm start
// Start the client (in another shell)
sudo npm run client
If you want the server to listen on a different port (not 8080) then change the PORT
variable in both lib/server.js and lib/client.js