Interface: LegacyConnection
A legacy iframe connection with explicit subscription and connection teardown.
Methods
dial()
dial(args): void | Promise<void>
Place a call or pre-fill the dialer.
Parameters
args
Returns
void | Promise<void>
disconnect()
disconnect(): void
Remove all listeners owned by the connection.
Returns
void
on()
on(name, handler): () => void
Observe an event; the returned function removes the subscription.
Parameters
name
string
handler
Returns
Function
Returns
void
setContext()
setContext(args): void | Promise<void>
Merge shared context for subsequent calls and messages.
Parameters
args
Record<string, unknown>
Returns
void | Promise<void>
setSession()
setSession(args): void | Promise<void>
Replace the current session correlation.
Parameters
args
Record<string, unknown>
Returns
void | Promise<void>
setTab()
setTab(tab): void | Promise<void>
Select a tab by its legacy numeric index.
Parameters
tab
number
Returns
void | Promise<void>