PackageManager.unpackWithType() method
unpacks an envelope with a known media type
Signature:
unpackWithType(mediaType: MediaType, envelope: Uint8Array): Promise<BasicMessage>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| mediaType | MediaType | |
| envelope | Uint8Array |
Returns:
Promise<BasicMessage>
Promise<BasicMessage>