1

getOnlineUsersOnCurrentDocument()

Subscribe to cursors of all online users who are either active or inactive on the current document.

Signature:

getOnlineUsersOnCurrentDocument: () => Observable<CursorUser[] | null>

Params:

none

Returns:

Observable<CursorUser[] | null>
2

setInactivityTime()

This method sets the inactivity time in milliseconds.

Signature:

setInactivityTime: (milliseconds: number) => void;

Params:

milliseconds: number

Returns:

void
3

allowedElementIds()

To allow cursors in specific elements only.

Signature:

allowedElementIds: (elementIds: string[]) => any

Params:

elementIds: string[]

Returns:

any