Options
All
  • Public
  • Public/Protected
  • All
Menu

A Replicated Counter data type.

A counter that can be incremented and decremented.

remarks

The value is stored as a 64-bit signed long, hence values over 2^63 - 1 and less than 2^63 can't be represented.

Hierarchy

  • ReplicatedCounter

Implements

Index

Constructors

Accessors

  • get longValue(): Long
  • get value(): number
  • The value as a number.

    remarks

    Note that once the value exceeds 2^53, this will not be an accurate representation of the value. If you expect it to exceed 2^53, longValue should be used instead.

    Returns number

Methods

  • toString(): string

Generated using TypeDoc