Skip to main content

IPackageManager.unpackWithType() 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.

unpacks an envelope with a known media type

Signature:

unpackWithType(mediaType: MediaType, envelope: Uint8Array): Promise<BasicMessage>;

Parameters

ParameterTypeDescription
mediaTypeMediaType
envelopeUint8Array

Returns:

Promise<BasicMessage>

Promise<BasicMessage>