Skip to main content

PackageManager.unpackWithType() method

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>