Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

UseTextChatResult

What useTextChat returns.

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.