Add SocketIO to server.js
- Socket.io is now listening on the app
Initialize SocketIO connection
- Connection starts when a client connects to the server
Add pseudo event code
- psuedo is the data from client
Add message event code
- Gets the clients psuedo
- Broadcasts to all nodes
Create empty script.js file in public
- SocketIO client-side configuration goes here
- This client will send messages
Add SocketIO connection between client and server
- stored as variable which can send and receive data
- automatically connects to the server at the start
Add function to append messages
- Add client side function that appends client messages to chat box
- Takes two args: psuedo(username), and msg which is the text
Add sentMessage function
- sentMessage first verifies that our chat input box is not empty
- Emits message on sockets
- Appends message to chat box
- Empties the chat text input box for new chat text
Add setPsuedo function
- This function sends the psuedo to the server
- Shows the text area and submit button while hiding the input
Add client-side socket
- Socket will add messages to server
Initialize client-side script on load
- Client-side chat controls are initialized when the client connects for the first time
- chatControls are hidden
- pseudo(username) is set
- On submit of a chat text, the sentMessage function is called
Merge pull request #11 from alexanderdavidpan/Configure_Socket-IO

Configure server-side and client-side SocketIO