Class: ComputerConnection

SharedUtils. ComputerConnection


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
Name Type Description
auth_token object
initialized_at number
info string
project_id string
room_id string
uid string
ice_servers any
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