Integrated the socket.io logic.
Fixed a small bug with setting the server address when initializing the client-side socket object.