PlainPacker.unpack() 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.
Unpack returns unpacked message from transport envelope
Signature:
unpack(envelope: Uint8Array): Promise<BasicMessage>;
Parameters
Parameter | Type | Description |
---|---|---|
envelope | Uint8Array | packed envelope (serialized json with media type) |
Returns:
Promise<BasicMessage>
Promise<BasicMessage>