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
| Parameter | Type |
|---|---|
raw | string | Uint8Array<ArrayBufferLike> |