IDIDComm.getDIDCommMessageMediaType() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Partially decodes a possible DIDComm message string to determine the DIDCommMessageMediaType
Signature:
getDIDCommMessageMediaType(args: IPackedDIDCommMessage): Promise<DIDCommMessageMediaType>;
Parameters
Parameter | Type | Description |
---|---|---|
args | IPackedDIDCommMessage | the message to be interpreted |
Returns:
Promise<DIDCommMessageMediaType>
- the DIDCommMessageMediaType if it was successfully parsed
Exceptions
if the message cannot be parsed as DIDComm v2
This API may change without a BREAKING CHANGE notice.