Skip to content

Documentation / @imvu/client / ChatMessage

Interface: ChatMessage ​

Defined in: packages/client/src/chat/ChatSession.ts:23

Properties ​

action ​

ts
action: boolean;

Defined in: packages/client/src/chat/ChatSession.ts:28

/me … narration.


payload ​

ts
payload: ChatPayload;

Defined in: packages/client/src/chat/ChatSession.ts:35


receivedAt ​

ts
receivedAt: Date;

Defined in: packages/client/src/chat/ChatSession.ts:34


text ​

ts
text: string;

Defined in: packages/client/src/chat/ChatSession.ts:26


to ​

ts
to: number;

Defined in: packages/client/src/chat/ChatSession.ts:30

0 for public chat, otherwise the whisper recipient's cid.


toMe ​

ts
toMe: boolean;

Defined in: packages/client/src/chat/ChatSession.ts:33

A whisper addressed to us.


userId ​

ts
userId: string;

Defined in: packages/client/src/chat/ChatSession.ts:25

Sender cid, from the IMQ envelope (trustworthy, unlike the payload's own userId).


whisper ​

ts
whisper: boolean;

Defined in: packages/client/src/chat/ChatSession.ts:31

Released under the MIT License.