new PointerSharingRoom()
Represents a room/client for pointer sharing.
Methods
-
getRoomId()
-
Returns the roomId of this one.
Returns:
- Type
- string
-
invite(contact, data)
-
Invites a given contact into the room represented by this one.
Parameters:
Name Type Description contactContact dataobject Returns:
- Type
- Promise
-
isActive()
-
Tests whether the room/client represented by this one is active.
Returns:
True if this one is active, false otherwise.
- Type
- boolean
-
leaveRoom()
-
Leaves the room.
Returns:
- Type
- Promise
-
sendPointerLocation(source, x, y, data)
-
Sends pointer location to other members of the room represented by this one.
Parameters:
Name Type Description sourceobject xnumber ynumber dataobject Optional data.
Returns:
- Type
- Promise