addMetadata

Adds a metadata key-value pair to the message.

Parameters

key

The key of the metadata

value

The value of the metadata