The structured payload type sent through sendMessage() and
received via the "message" event.
Creates a live connection instance from one side of a previously exchanged contract.
The structured payload type sent through sendMessage() and
received via the "message" event.
The contract copy for the local role.
References the latest remote camera element created for this connection.
References the latest remote screen-share element created for this connection.
StaticlocalStores the shared local camera preview element, when camera sharing has been enabled.
StaticlocalStores the shared local screen preview element, when screen sharing has been enabled.
Registers an event listener.
The event type to listen for.
The listener to register.
Optionaloptions: boolean | AddEventListenerOptionsListener registration options.
Closes the data channel and underlying peer connection.
Removes an event listener.
The event type to stop listening for.
The listener to remove.
Optionaloptions: boolean | EventListenerOptionsListener removal options.
Sends an application payload over the open data channel.
The structured payload to encode and transmit.
Starts sending the shared local camera track and populates the shared local preview element.
Starts sending the shared local microphone track to the remote peer.
The first call lazily creates and caches the shared user-media stream.
Starts sending the shared local display stream and populates the shared local preview element.
Stops sending the local camera track, if one is currently attached.
Stops sending the local microphone track, if one is currently attached.
Stops sending the local display tracks, if any are currently attached.
StaticacceptAccepts a remote offer and returns the paired contract copies needed by the two peers to finalize the connection locally.
The remote offer to accept.
Optional additional ICE servers appended after the built-in public STUN configuration.
The contract copies for the offeror and offeree.
StaticmakeCreates a new offer and reserves the local offeror-side connection state until the returned offer is later consumed by the constructor.
Optional additional ICE servers appended after the built-in public STUN configuration.
An offer that can be transported to the remote peer out-of-band.
Provides a thin, browser-oriented wrapper around a WebRTC peer connection and its application data channel.