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:
Name | Type | Description |
---|---|---|
account | Account | Dasha account to use. Must be the same as the application's account. |
conversation? | Conversation<Record<string, unknown>, Record<string, unknown>> | - |
Returns: MultichannelChatManager
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:
Name | Type |
---|---|
channelId | string |
Returns: Promise<void>
sendOpen
▸ sendOpen(channelId
: string): Promise<IMultichannelChat>
Parameters:
Name | Type |
---|---|
channelId | string |
Returns: Promise<IMultichannelChat>