adding camera socket.io codes