Skip to content

Class: RtcSessionController<T, Track> ​

Defined in: rtcSession.ts:13

One owner for connection, publication and teardown; obsolete work never publishes.

Type Parameters ​

Type Parameter
T
Track extends object

Constructors ​

Constructor ​

ts
new RtcSessionController<T, Track>(onSession, onError): RtcSessionController<T, Track>;

Defined in: rtcSession.ts:18

Parameters ​

ParameterType
onSession(session) => void
onError(error) => void

Returns ​

RtcSessionController<T, Track>

Methods ​

start() ​

ts
start(create): Promise<void>;

Defined in: rtcSession.ts:43

Parameters ​

ParameterType
create() => RtcSession<T, Track>

Returns ​

Promise<void>


stop() ​

ts
stop(): void;

Defined in: rtcSession.ts:23

Returns ​

void

Released under the GNU Affero General Public License v3.0.