Skip to main content

ISession

@auvious/rtc / Exports / ISession

Interface: ISession

Object received by newSession on incoming or outgoing calls

Table of contents

Properties

Methods

Properties

direction

Readonly direction: string

Will be "incoming" or "outgoing"


eventHandlers

eventHandlers: ISessionEventHandlers


id

id: string

the call ID


remoteEndpoint

Readonly remoteEndpoint: IEndpoint<{ [key: string]: any; }>

Methods

answer

answer(options?): void

Parameters

NameType
options?IAnswerOptions

Returns

void


hold

hold(): Promise<void>

Returns

Promise<void>


isEstablished

isEstablished(): boolean

Returns

boolean


isInProgress

isInProgress(): boolean

Returns

boolean


isOnHold

isOnHold(): IHoldInfo

Returns

IHoldInfo


on

on(eventId, handler): any

Parameters

NameType
eventIdstring
handler(event?: any) => void

Returns

any


terminate

terminate(reason?): void

Multiple uses depending on call status - hangup, reject, cancel

Parameters

NameType
reason?string

Returns

void


unhold

unhold(): Promise<void>

Returns

Promise<void>