Hierarchy

  • RemoteUser

Constructors

Properties

Methods

Constructors

  • Throws

    If identifier is not supplied.

    Parameters

    • id: string
    • data: Record<string, unknown> = {}

      The serialized key-value data object to assign to this user.

    Returns RemoteUser

Properties

data: Record<string, unknown> = {}
id: string

Methods

  • Get the data value for the given key.

    Returns

    Stored data for this key. May be undefined.

    Type Parameters

    • T

    Parameters

    • key: string

      An arbitrary bridge-specific key.

    Returns T

  • Get the Remote user ID.

    Returns

    The id

    Returns string

  • Serialize all the data about this room, excluding the room ID.

    Returns

    The serialised data

    Returns Record<string, unknown>

  • Set an arbitrary bridge-specific data value for this room.

    Parameters

    • key: string

      The key to store the data value under.

    • val: unknown

      The data value. This value should be serializable via JSON.stringify(data).

    Returns void

Generated using TypeDoc