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
Parameter | Type | Description |
---|---|---|
{ message } | IPackedDIDCommMessage |
Returns:
Promise<DIDCommMessageMediaType>
- the DIDCommMessageMediaType if it was successfully parsed