You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/liveobjects-live-counter/javascript/README.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,12 @@ LiveCounters are implemented using [Ably LiveObjects](https://ably.com/docs/live
12
12
13
13
Use the following methods to interact with a LiveCounter in your application:
14
14
15
-
*[`objects.getRoot()`](https://ably.com/docs/liveobjects) - retrieves the root object that serves as the starting point for storing and organizing objects on a channel.
16
-
*[`objects.createCounter()`](https://ably.com/docs/liveobjects) - creates a new LiveCounter instance.
17
-
*[`liveCounter.value()`](https://ably.com/docs/liveobjects/livecounter) - returns the current value of a counter.
18
-
*[`liveCounter.increment()`](https://ably.com/docs/liveobjects/livecounter) - sends the operation message to the Ably system to increase the counter value.
19
-
*[`liveCounter.decrement()`](https://ably.com/docs/liveobjects/livecounter) - sends the operation message to the Ably system to decrease the counter value.
20
-
*[`liveCounter.subscribe()`](https://ably.com/docs/liveobjects/livecounter) - subscribes to LiveCounter updates by registering a listener.
15
+
-[`objects.getRoot()`](https://ably.com/docs/liveobjects) - retrieves the root object that serves as the starting point for storing and organizing objects on a channel.
16
+
-[`objects.createCounter()`](https://ably.com/docs/liveobjects) - creates a new LiveCounter instance.
17
+
-[`liveCounter.value()`](https://ably.com/docs/liveobjects/livecounter) - returns the current value of a counter.
18
+
-[`liveCounter.increment()`](https://ably.com/docs/liveobjects/livecounter) - sends the operation message to the Ably system to increase the counter value.
19
+
-[`liveCounter.decrement()`](https://ably.com/docs/liveobjects/livecounter) - sends the operation message to the Ably system to decrease the counter value.
20
+
-[`liveCounter.subscribe()`](https://ably.com/docs/liveobjects/livecounter) - subscribes to LiveCounter updates by registering a listener.
21
21
22
22
Find out more about [LiveCounter](https://ably.com/docs/liveobjects/livecounter).
23
23
@@ -41,7 +41,7 @@ cd /examples/
41
41
mv .env.example .env.local
42
42
```
43
43
44
-
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
44
+
4. In `.env.local` update the value of `VITE_ABLY_KEY` to be your Ably API key.
45
45
46
46
5. Install dependencies:
47
47
@@ -59,4 +59,4 @@ yarn run liveobjects-live-counter-javascript
59
59
60
60
## Open in CodeSandbox
61
61
62
-
In CodeSandbox, rename the `.env.example` file to `.env.local` and update the value of your `VITE_PUBLIC_ABLY_KEY` variable to use your Ably API key.
62
+
In CodeSandbox, rename the `.env.example` file to `.env.local` and update the value of your `VITE_ABLY_KEY` variable to use your Ably API key.
Copy file name to clipboardExpand all lines: examples/liveobjects-live-map/javascript/README.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,12 @@ LiveMaps are implemented using [Ably LiveObjects](https://ably.com/docs/liveobje
12
12
13
13
Use the following methods to interact with a LiveMap in your application:
14
14
15
-
*[`objects.getRoot()`](https://ably.com/docs/liveobjects) - retrieves the root object that serves as the starting point for storing and organizing objects on a channel.
16
-
*[`objects.createMap()`](https://ably.com/docs/liveobjects) - creates a new LiveMap instance.
17
-
*[`liveMap.get(key)`](https://ably.com/docs/liveobjects/livemap) - returns the current value associated with a given key in the map.
18
-
*[`liveMap.set(key, value)`](https://ably.com/docs/liveobjects/livemap) - sends the operation message to the Ably system to assign a value to a key in the map.
19
-
*[`liveMap.remove(key)`](https://ably.com/docs/liveobjects/livemap) - sends the operation message to the Ably system to remove a key from the map.
20
-
*[`liveMap.subscribe()`](https://ably.com/docs/liveobjects/livemap) - subscribes to LiveMap updates by registering a listener.
15
+
-[`objects.getRoot()`](https://ably.com/docs/liveobjects) - retrieves the root object that serves as the starting point for storing and organizing objects on a channel.
16
+
-[`objects.createMap()`](https://ably.com/docs/liveobjects) - creates a new LiveMap instance.
17
+
-[`liveMap.get(key)`](https://ably.com/docs/liveobjects/livemap) - returns the current value associated with a given key in the map.
18
+
-[`liveMap.set(key, value)`](https://ably.com/docs/liveobjects/livemap) - sends the operation message to the Ably system to assign a value to a key in the map.
19
+
-[`liveMap.remove(key)`](https://ably.com/docs/liveobjects/livemap) - sends the operation message to the Ably system to remove a key from the map.
20
+
-[`liveMap.subscribe()`](https://ably.com/docs/liveobjects/livemap) - subscribes to LiveMap updates by registering a listener.
21
21
22
22
Find out more about [LiveMap](https://ably.com/docs/liveobjects/livemap).
23
23
@@ -41,7 +41,7 @@ cd /examples/
41
41
mv .env.example .env.local
42
42
```
43
43
44
-
4. In `.env.local` update the value of `VITE_PUBLIC_ABLY_KEY` to be your Ably API key.
44
+
4. In `.env.local` update the value of `VITE_ABLY_KEY` to be your Ably API key.
45
45
46
46
5. Install dependencies:
47
47
@@ -59,4 +59,4 @@ yarn run liveobjects-live-map-javascript
59
59
60
60
## Open in CodeSandbox
61
61
62
-
In CodeSandbox, rename the `.env.example` file to `.env.local` and update the value of your `VITE_PUBLIC_ABLY_KEY` variable to use your Ably API key.
62
+
In CodeSandbox, rename the `.env.example` file to `.env.local` and update the value of your `VITE_ABLY_KEY` variable to use your Ably API key.
0 commit comments