ConsoleChat
A simple, console-based Chat wrapper for testing and debugging applications. Only available in Node.js.
Extends
Constructors
new ConsoleChat()
new ConsoleChat(
account
,conversation
?,syncMode
?):ConsoleChat
Parameters
account
conversation?
syncMode?
boolean
Returns
Overrides
Properties
account
protected
account:Account
Dasha account to use. Must be the same as the application's account.
Inherited from
Methods
close()
close():
Promise
<void
>
Close the chat, notifying the application.
Returns
Promise
<void
>
Inherited from
sendText()
sendText(
text
):Promise
<void
>
Send some text to the application.
Parameters
text
string
Returns
Promise
<void
>
Inherited from
sendTextAndReceiveResponse()
sendTextAndReceiveResponse(
text
):Promise
<string
>
Send some text and wait for response
Parameters
text
string
Returns
Promise
<string
>
Inherited from
Found a mistake? Let us know.