Class: ConcurrentEditingManager

sync.api. ConcurrentEditingManager


new ConcurrentEditingManager()

Manager for concurrent editing-related functionality.

Members


<static> EventType :String

Type:
  • String
Properties:
Name Type Default Description
ROOM_CREATED String room_created Event dispatched when a concurrent editing room is created.

Methods


createRoom()

Create a concurrent editing room for this document.
Returns:
The room ID. This room ID can be passed in the sync.api.Workspace.LoadingOptions.
Type
Thenable.<String>

isCreator()

Returns:
true if the current user is the creator of the room.
Type
boolean

isInRoom()

Returns:
true if it is part of a concurrent session.
Type
boolean