The options used to configure the Producer.
Connects to PulseVision, requests access to capture the screen, and starts streaming to the room.
Calling it again while a connection is in flight returns the same promise, and calling it while already connected resolves without doing anything.
Releases this producer for good: stops the media tracks, clears the
preview interval and removes every socket listener immediately. If in a
room, sends exitRoom and closes the socket on its ACK or after 1 second.
Synchronous, terminal and idempotent - any later connect() rejects.
Disconnects from PulseVision and stops streaming to the room.
The instance stays reusable: the next connect() uses a fresh room name.
The Producer class is used to create a stream from a browser to a PulseVision room.
Example