Skip to content

Documentation / @imvu/imq / encode

Function: encode() ​

ts
function encode<T>(record, ...__namedParameters): string;

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

Encode an outgoing message to the JSON string to send over the stream.

Type Parameters ​

Type Parameter
T extends keyof EncodeInputMap

Parameters ​

ParameterType
recordT
...__namedParametersEncodeInputMap[T] extends void ? [] : [EncodeInputMap[T]]

Returns ​

string

Released under the MIT License.