Code for Newarks tutorial on SocketIO