IDIDComm.getDIDCommMessageMediaType() method

This API is provided as a 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

ParameterTypeDescription
argsIPackedDIDCommMessage
Returns:

Promise<DIDCommMessageMediaType >

the DIDCommMessageMediaType if it was successfully parsed

Exceptions

if the message cannot be parsed as DIDComm v2