@mocanvas/editor · interface

PresenceUser

interface PresenceUser

The identity half of a presence record: everything the derivation cannot read off the store because it is about *who* rather than *what they are doing*.

Structural on purpose — a User record satisfies it, and so does the plain { id, name, color } a host already has from its own session.


Properties · 4

color?: string
id: UserId

A branded UserId — this is what lands on InstancePresence.userId.

meta?: JsonObject
name?: string

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.