Implemented basic socket.io functionality