Skip to main content
Version: 2.1

SendChatMessage

Send a message to an existing chat room.

Intent Name

SendChatMessage

Display Name

Send Chat Message

Possible Contexts

Example

// Start a chat and retrieve a reference to the chat room created
const intentResolution = await fdc3.raiseIntent("StartChat", context);
const chatRoom = intentResolution.getResult();

//Some time later

let chatMessage: ChatMessage = {
type: "fdc3.chat.message",
chatRoom,
message: "Another message to send in the room"
}

await fdc3.raiseIntent("SendChatMessage", context, intentResolution.source);

See Also

Context

Intents