@manta-eu/react/providers/chat-connection-lifecycle
Reference for @manta-eu/react/providers/chat-connection-lifecycle as it is on main.
Type Aliases
ActiveChatConnectionState
ActiveChatConnectionState =
"open"|"reconnecting"|"closed"
BlankConversationLifecycle
BlankConversationLifecycle =
object
Properties
conversationId?
optionalconversationId?:string
creating?
optionalcreating?:boolean
idempotencyKey
idempotencyKey:
string
materialization?
optionalmaterialization?:Promise<void>
Functions
createBlankConversationLifecycle()
createBlankConversationLifecycle():
BlankConversationLifecycle
Returns
mapActiveChatConnectionState()
mapActiveChatConnectionState(
agent,hasConnected):ActiveChatConnectionState|undefined
Parameters
agent
connectionError
object | null
identified
boolean
readyState
number
hasConnected
boolean
Returns
ActiveChatConnectionState | undefined
mapManagerConnectionState()
mapManagerConnectionState(
agent):ConnectionState
Parameters
agent
connectionError
object | null
readyState
number