Skip to main content

ISessionEventHandlers

@auvious/rtc / Exports / ISessionEventHandlers

Interface: ISessionEventHandlers

Handlers for a call

Table of contents

Properties

Properties

accepted

Optional accepted: (event?: any) => void

Type declaration

▸ (event?): void

Callee has answered call

Parameters
NameType
event?any
Returns

void


connecting

Optional connecting: (event?: any) => void

Type declaration

▸ (event?): void

Sent when rest api call successful

Parameters
NameType
event?any
Returns

void


ended

Optional ended: (event?: any) => void

Type declaration

▸ (event?): void

Call was terminated by either end

Parameters
NameTypeDescription
event?anya reason string
Returns

void


failed

Optional failed: (event?: any) => void

Type declaration

▸ (event?): void

Any fatal error occurred, followed by ended event

Parameters
NameTypeDescription
event?anyError object
Returns

void


ringing

Optional ringing: (event?: any) => void

Type declaration

▸ (event?): void

Sent to both ends when callee has received call notification

Parameters
NameType
event?any
Returns

void


streamAdded

Optional streamAdded: (event?: any) => void

Type declaration

▸ (event?): void

A remote stream is available, or local one immediately after call request

Parameters
NameTypeDescription
event?anyIStream
Returns

void


streamRemoved

Optional streamRemoved: (event?: any) => void

Type declaration

▸ (event?): void

Symmetric event to streamAdded

Parameters
NameTypeDescription
event?anyIStream
Returns

void