Added basic client-side socket.io code