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
| Parameter | Type |
|---|---|
record | T |
...__namedParameters | EncodeInputMap[T] extends void ? [] : [EncodeInputMap[T]] |
Returns
string