Retrieving OP_RETURN messages

What’s the best way to retrieve a message embedded into a transaction in a OP_RETURN otuput?

More specifically, once I embed a message using the ‘addData’ function,
how am I supposed to read it on the receiver side?