MultichannelChatManager

multichannelChat.MultichannelChatManager

Hierarchy

  • EventEmitter<{ error: [error: Error] ; open: [endpoint: string, channelid: string] }>

    MultichannelChatManager

Constructors

constructor

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

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>>-

Overrides: EventEmitter<{ error: [error: errors.Error]; open: [endpoint: string, channelid: string]; }>.constructor

Properties

account

Protected account: Account

Methods

close

close(): Promise<void>

Returns: Promise<void>


sendFailed

sendFailed(channelId: string): Promise<void>

Parameters:

NameType
channelIdstring

Returns: Promise<void>


sendOpen

sendOpen(channelId: string): Promise<IMultichannelChat>

Parameters:

NameType
channelIdstring

Returns: Promise<IMultichannelChat>

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.