ConsoleChat

chat.ConsoleChat

A simple, console-based Chat wrapper for testing and debugging applications. Only available in Node.js.

Hierarchy

Constructors

constructor

+ new ConsoleChat(account: Account, conversation?: Conversation<Record<string, unknown>, Record<string, unknown>>): ConsoleChat

Create a Chat instance to use with an application.

Parameters:

NameTypeDescription
accountAccountDasha account to use. Must be the same as the application's account.
conversation?Conversation<Record<string, unknown>, Record<string, unknown>>-

Returns: ConsoleChat

Inherited from: Chat

Properties

account

Protected account: Account

Inherited from: Chat.account

Methods

close

close(): Promise<void>

Close the chat, notifying the application.

Returns: Promise<void>

Inherited from: Chat


sendText

sendText(text: string): Promise<void>

Send some text to the application.

Parameters:

NameType
textstring

Returns: Promise<void>

Inherited from: Chat

Found a mistake? Email us, and we'll send you a free t-shirt!

Enroll in beta

Request invite to our private Beta program for developers to join the waitlist. No spam, we promise.