Implement basic socket.io functionality