new ComputerConnection(RoomOptions)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RoomOptions |
object | RoomOptions are used to grant the user's client device access to the remote computer via the ComputerConnection instance. The options are retrieved from an api endpoint as you can see in this linked example. Properties
|
Fires:
- event:"connect" - When the client has successfully connected to the room and is ready to connect to other Participants in the Room.
- event:"disconnect" - When the client disconnects from the Room and all the Participants in the Room.
- event:"stream-added" - When a stream is added to the Room by a Participant.
- event:"stream-removed" - When a stream is removed from the Room by a Participant.
- event:"error" - When an error occured in the instance of the Room.
Returns:
ComputerConnection