Skip to main content

DIDComm.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({ message }: IPackedDIDCommMessage): Promise<DIDCommMessageMediaType>;

Parameters

ParameterTypeDescription
{ message }IPackedDIDCommMessage

Returns:

Promise<DIDCommMessageMediaType>