Class: HostSession
Defined in: host-session.ts:101
Constructors
Constructor
new HostSession(
opts):HostSession
Defined in: host-session.ts:113
Parameters
opts
Returns
HostSession
Methods
announce()
announce():
void
Defined in: host-session.ts:215
Re-announce videoStatus (the plane rider) WITHOUT re-offering — for changes the track absorbs on its own (a window resize moves the plane; WebRTC re-fits the same track), where a re-offer would blink the video for nothing. refresh() remains the plane-SWITCH path (new stream).
Returns
void
connect()
connect():
void
Defined in: host-session.ts:119
Dial the relay. Reconnects every RECONNECT_MS until disposed.
Returns
void
deny()
deny(
detail):void
Defined in: host-session.ts:203
A capture attempt failed — tell every viewer why, verbatim.
Parameters
detail
string
Returns
void
dispose()
dispose():
void
Defined in: host-session.ts:229
Returns
void
refresh()
refresh():
void
Defined in: host-session.ts:188
The plane changed — a different stream, a granted capture, a mode switch. Announces the new videoStatus and re-offers to every connected viewer (clients treat any incoming SDP as a fresh offer and rebuild their side).
Returns
void
setName()
setName(
name):void
Defined in: host-session.ts:221
Rename the session live: re-registers, so every picker hears the new name.
Parameters
name
string
Returns
void