Options
All
  • Public
  • Public/Protected
  • All
Menu

Sends a chat message to a given topic.

example

Use a bare-bones client and the command you need to make an API call.

import { ChatServiceClient, SendChatMessageCommand } from "@rivet-gg/chat"; // ES Modules import
// const { ChatServiceClient, SendChatMessageCommand } = require("@rivet-gg/chat"); // CommonJS import
const client = new ChatServiceClient(config);
const command = new SendChatMessageCommand(input);
const response = await client.send(command);
see

SendChatMessageCommandInput for command's input shape.

see

SendChatMessageCommandOutput for command's response shape.

see

config for ChatServiceClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: SendChatMessageCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<SendChatMessageCommandInput, SendChatMessageCommandOutput>