Skip to main content

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

ParameterTypeDescription
argsIPackedDIDCommMessagethe message to be interpreted

Returns:

Promise<DIDCommMessageMediaType>

Exceptions

if the message cannot be parsed as DIDComm v2

This API may change without a BREAKING CHANGE notice.