Skip to content

Documentation / @imvu/imq / decode

Function: decode() ​

ts
function decode(raw): DecodedMessage;

Defined in: packages/imq/src/codec.ts:135

Decode a raw incoming frame (JSON string or UTF-8 bytes, e.g. a Node Buffer) into a typed message.

Parameters ​

ParameterType
rawstring | Uint8Array<ArrayBufferLike>

Returns ​

DecodedMessage

Released under the MIT License.