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 contact
Contact data
object 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 source
object x
number y
number data
object Optional data.
Returns:
- Type
- Promise