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

Type Alias: Peer\<TPresence\>

@roomful/core


@roomful/core / Peer

Peer<TPresence> = object & Partial<TPresence>

Defined in: packages/core/src/types.ts:482

Describes a local or remote peer known to a room.

optional avatar: string

Exposes the peer avatar URL when available.

optional color: string

Exposes the peer color when available.

id: string

Identifies the peer across transports.

joinedAt: number

Records when the peer joined the room.

lastSeen: number

Records the last time the peer was observed.

optional name: string

Exposes a human-readable peer name when available.

TPresence extends PresenceData = PresenceData

The custom presence shape merged into the peer record.