Skip to content

uncategorized storage

abc edited this page Sep 6, 2024 · 4 revisions

Storage

This is the structure that stores storage values.

1. Properties

  • crappy_router: boolean: If true, sets a timeout value to 10 seconds instead of 4 seconds while joining a room. Default value is false.
  • player_name: string: Name of the player. Default value is "abc".
  • avatar: string: Avatar of the player. Default value is null.
  • geo: GeoLocation: Geolocation of the player. (documentation). Default value is { lat: 40, lon: 40, flag: "tr" }.

2. Callbacks

  • onValueSet(key: string, value: object): void

    A callback function that is called just after the value of a key of this object has been changed by this library.

    Parameters:

    • key: string: The key that has just changed.
    • value: object: The new value of the key.

    Return value: void.

Clone this wiki locally