Membership: {
    from: number;
    roomId: string;
    status: MembershipStatus;
    until?: number;
    userId: string;
}

Record representing the membership status of a user in a room for a specific period.

A user will have a history of zero or more non-overlapping Membership records for each room.

Type declaration

  • from: number

    The start time of the period (inclusive) in ms since the epoch.

  • roomId: string

    The room ID.

  • status: MembershipStatus

    The user's membership status for the given period.

  • Optionaluntil?: number

    The end time of the period (exclusive) in ms since the epoch. The current membership for a user will have a null date.

  • userId: string

    The user ID.