@yorkie-js/sdk
    Preparing search index...

    Class Presence<P>

    Presence represents a proxy for the Presence to be manipulated from the outside.

    Type Parameters

    Index

    Constructors

    Methods

    Constructors

    Methods

    • get returns the presence value of the given key.

      Type Parameters

      • K extends string | number | symbol

      Parameters

      • key: K

      Returns P[K]

    • set updates the presence based on the partial presence.

      Parameters

      • presence: Partial<P>
      • Optionaloption: { addToHistory: boolean }

      Returns void