A Space is where participants meet. Participants can publish their own tracks and subscribe to other publishers.
A space emits SpaceEvent as a way to relay state updates.
Space is used to interact with a Space created first using the Mux Spaces Server API. Once you have created a Space on the server, you can get started by using this class.
A JSON Web Token (JWT) with a
sub of the Mux Space ID and an
aud value that is an array containing any of the following strings:
pub- publishing of streams.
sub- subscribing to streams.
An optional set of Space Options
A boolean indicating whether the Space is currently being broadcast.
The local participant in the Space. This will be set after a successful join.
Join the Space.
A promise that resolves on a successful join.
Leave the Space.
Generated using TypeDoc