Sends a chat message to a given topic.
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);
SendChatMessageCommandInput for command's input shape.
input
SendChatMessageCommandOutput for command's response shape.
response
config for ChatServiceClient's config shape.
config
Sends a chat message to a given topic.
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);SendChatMessageCommandInput for command's
inputshape.SendChatMessageCommandOutput for command's
responseshape.config for ChatServiceClient's
configshape.