Skip to content

CallManager

Calculus edited this page Feb 24, 2024 · 3 revisions

The manager for any and all, cached or uncached, incoming and outgoing calls.

extends BaseManager

Properties

.incoming : Set

Responsible for caching incoming calls.

.outgoing : Set

Responsible for caching outgoing calls.

Methods

.accept(callerId) : Promise<CallRoom>

Accept an incoming call.

Name Type Optional
callerId string No

.cancel(recipientId) : Promise<boolean>

Cancel an outgoing call.

Name Type Optional
recipientId string No

.rate(callId, rating, options?) : Promise<boolean>

Rate a call.

Name Type Optional
callId string No
rating number No
options object Yes

.reject(callerId) : Promise<boolean>

Reject an incoming call.

Name Type Optional
callerId string No

.start(userId) : Promise<CallRoom>

Start a private call with another user.

Name Type Optional
userId string No

Clone this wiki locally