Manta Developers
GitHub
Menu

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

optional conversationId?: string

creating?

optional creating?: boolean

idempotencyKey

idempotencyKey: string

materialization?

optional materialization?: Promise<void>

Functions

createBlankConversationLifecycle()

createBlankConversationLifecycle(): BlankConversationLifecycle

Returns

BlankConversationLifecycle


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

Returns

ConnectionState