Skip to content
Roomful is in public beta — install with the @beta tag. Share feedback →

Interface: UseAwarenessResult

@roomful/react


@roomful/react / UseAwarenessResult

Defined in: react/src/index.ts:155

Describes the return value of useAwareness.

others: AwarenessState[]

Defined in: react/src/index.ts:159

Exposes remote awareness state only.


set: (value) => void

Defined in: react/src/index.ts:164

Merges arbitrary awareness metadata into the local peer.

Merges arbitrary awareness metadata into the local peer.

Record<string, unknown>

The awareness fields to merge.

void

Nothing.


setFocus: (elementId) => void

Defined in: react/src/index.ts:169

Updates the local focus target.

Updates the local focus target.

The focused element identifier, or null to clear it.

string | null

void

Nothing.


setSelection: (selection) => void

Defined in: react/src/index.ts:174

Updates the local selection.

Updates the local text selection.

The active selection, or null to clear it.

AwarenessSelection | null

void

Nothing.


setTyping: (isTyping) => void

Defined in: react/src/index.ts:179

Updates the local typing state.

Updates the local typing state.

boolean

Whether the local peer is currently typing.

void

Nothing.