Remove .listen from require('socket.io')
- Not necessary in SocketIO 1.0
Remove Number method and comment from port variable
- port is either the heroku port or localhost:3000
- fix spacing
Edit listener for server side connection
- Change io.sockets.on to just io.on because that is SocketIO 1.0 syntax
Edit setUsername callback function on socket.on
- socket.set is deprecated in Socket.IO 1.0
- get around this change by setting the socket username to username
Edit socket.on listener event for new messages
- socket.get is deprecated in SocketIO 1.0
- get around this change by broadcasting to all users the username (stored in socket.username) and the message
- remove console.log testing for this event
Remove id sign from chatEntries div selector
- Since the div selector uses the selectElementById function, the id sign is redundant
- Fix error where the scrollHeight was undefined
Specify localhost:3000 in io.connect function
- Specify port that the application will be listening on
Merge pull request #28 from alexanderdavidpan/Fix_SocketIO_Deprecation_Errors

Fix Socketio deprecation errors