@httpstate/typescript 0.0.40 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ and retrieve it with
|
|
|
30
30
|
const data = await httpstate.get('45fb36540e9244daaa21ca409c6bdab3');
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
You can also get
|
|
33
|
+
You can also get realtime updates
|
|
34
34
|
|
|
35
35
|
```typescript
|
|
36
36
|
const hs = httpstate('45fb36540e9244daaa21ca409c6bdab3');
|
|
@@ -86,14 +86,14 @@ That's it! 🐙
|
|
|
86
86
|
<br>
|
|
87
87
|
|
|
88
88
|
- `<HttpState>.addEventListener(type, callback)`
|
|
89
|
-
Subscribe to
|
|
89
|
+
Subscribe to realtime updates (alias for `on`).
|
|
90
90
|
- `<HttpState>.off(type, callback)`
|
|
91
|
-
Unsubscribe from
|
|
91
|
+
Unsubscribe from realtime updates.
|
|
92
92
|
- `<HttpState>.on(type, callback)`
|
|
93
|
-
Subscribe to
|
|
93
|
+
Subscribe to realtime updates.
|
|
94
94
|
- `change`: fired when state data changes. Callback receives current data as argument.
|
|
95
95
|
- `<HttpState>.removeEventListener(type, callback)`
|
|
96
|
-
Unsubscribe from
|
|
96
|
+
Unsubscribe from realtime updates (alias for `off`).
|
|
97
97
|
|
|
98
98
|
<br>
|
|
99
99
|
|
package/package.json
CHANGED