Documentation / @imvu/client / ChatPayload
Interface: ChatPayload
Defined in: packages/client/src/chat/protocol.ts:10
IMVU room chat wire format. Each line is a JSON string on the chat's IMQ message mount: {chatId, message, to, userId}. chatId is the imq_queue suffix, to is 0 for public chat or the recipient's cid for a whisper. The payload's userId is whatever the sending client wrote (string or number, unvalidated). The sender's real identity is the IMQ envelope's user_id. Lines starting with * are legacy client-to-client commands (outfits, seats, boots, …). See ROADMAP.md for captures.
Indexable
[field: string]: unknownProperties
chatId
chatId: string;Defined in: packages/client/src/chat/protocol.ts:11
message
message: string;Defined in: packages/client/src/chat/protocol.ts:12
to
to: number;Defined in: packages/client/src/chat/protocol.ts:13
userId?
userId?: string | number;Defined in: packages/client/src/chat/protocol.ts:15
As written by the sender, so untrusted. Use the IMQ envelope's user id instead.