Skip to content

Documentation / @imvu/client / encodeChatPayload

Function: encodeChatPayload() ​

ts
function encodeChatPayload(
   chatId, 
   message, 
   userId, 
   to?
): ChatPayload;

Defined in: packages/client/src/chat/protocol.ts:83

Build the payload for a chat line.

Parameters ​

ParameterTypeDefault value
chatIdstringundefined
messagestringundefined
userIdstringundefined
to?string | number0

Returns ​

ChatPayload

Released under the MIT License.