UseTextChatResult
What useTextChat returns.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
channels |
string[] |
The channels’ names the player writes to, the first the default. |
messages |
ReceivedTextChatMessage[] |
The messages the player may see, oldest first. |
send |
(text, options?) => Promise<TextChatSendResult> |
Sends what the sender typed, to channel or the first. Resolves with the message as the sender reads it, or why the room refused it. |
state |
TextChatState |
Whether chat runs here: alone in a game played alone, which shows a game’s own messages only. |