@volorio/react-native-rtm 0.2.0 → 0.2.1
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/LICENSE +16 -0
- package/README.md +30 -6
- package/package.json +19 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Volorio SDK Commercial License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Volorio. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission to install and use this SDK is granted only to an authorized Volorio
|
|
6
|
+
customer or evaluator, solely to integrate an application with Volorio services,
|
|
7
|
+
and subject to the Volorio Terms at https://volor.io/terms.
|
|
8
|
+
|
|
9
|
+
Except where the Volorio Terms expressly allow it, you may not redistribute,
|
|
10
|
+
sublicense, sell, publish, reverse engineer, or create a competing service from
|
|
11
|
+
this SDK or its source code. No ownership rights are transferred.
|
|
12
|
+
|
|
13
|
+
Third-party dependencies remain subject to their respective licenses.
|
|
14
|
+
|
|
15
|
+
THE SDK IS PROVIDED WITHOUT WARRANTIES EXCEPT TO THE EXTENT EXPRESSLY STATED IN
|
|
16
|
+
THE VOLORIO TERMS.
|
package/README.md
CHANGED
|
@@ -1,15 +1,39 @@
|
|
|
1
1
|
# @volorio/react-native-rtm
|
|
2
2
|
|
|
3
|
-
React Native RTM helpers for
|
|
3
|
+
Volorio React Native RTM helpers for channel messages and presence.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
4
6
|
|
|
5
7
|
```bash
|
|
6
|
-
npm install @volorio/react-native-rtm
|
|
8
|
+
npm install @volorio/react-native-rtm@0.2.1
|
|
7
9
|
```
|
|
8
10
|
|
|
11
|
+
## Runtime and security
|
|
12
|
+
|
|
13
|
+
- Runtime: React Native application
|
|
14
|
+
- Source version: `0.2.1`
|
|
15
|
+
- Registry status: published as 0.2.1
|
|
16
|
+
- API base URL for server calls: `https://api.volor.io`
|
|
17
|
+
- License: proprietary commercial SDK; see the included `LICENSE` and [Volorio Terms](https://volor.io/terms).
|
|
18
|
+
- Never expose a Volorio API key in browser, React Native, or Flutter code. Create short-lived sessions in your backend.
|
|
19
|
+
- Capability note: Requested products must be granted to the API key and accepted by the session endpoint.
|
|
20
|
+
|
|
21
|
+
## Public API
|
|
22
|
+
|
|
23
|
+
- `VolorioReactNativeRtmPresence`
|
|
24
|
+
- `VolorioReactNativeRtmClient`
|
|
25
|
+
|
|
9
26
|
```ts
|
|
10
27
|
import { VolorioReactNativeRtmClient } from "@volorio/react-native-rtm";
|
|
11
|
-
|
|
12
|
-
const rtm = new VolorioReactNativeRtmClient(room);
|
|
13
|
-
await rtm.publishMessage("lobby", { text: "hello" });
|
|
14
|
-
await rtm.setPresence("lobby", { status: "online" });
|
|
15
28
|
```
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## Dependencies
|
|
32
|
+
|
|
33
|
+
- `@volorio/react-native` `^0.2.0`
|
|
34
|
+
|
|
35
|
+
## Documentation
|
|
36
|
+
|
|
37
|
+
- [Volorio npm integration guide](https://volor.io/docs/packages/npm-overview)
|
|
38
|
+
- [REST and SDK documentation](https://volor.io/docs)
|
|
39
|
+
- [Volorio Console](https://app.volor.io)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volorio/react-native-rtm",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Volorio React Native RTM helpers for channel messages and presence.",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"dist/src",
|
|
16
|
-
"README.md"
|
|
16
|
+
"README.md",
|
|
17
|
+
"LICENSE"
|
|
17
18
|
],
|
|
18
19
|
"publishConfig": {
|
|
19
20
|
"access": "public",
|
|
@@ -26,5 +27,20 @@
|
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
29
|
"@volorio/react-native": "^0.2.0"
|
|
29
|
-
}
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://volor.io/docs/packages/npm-overview",
|
|
32
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
33
|
+
"keywords": [
|
|
34
|
+
"volorio",
|
|
35
|
+
"realtime",
|
|
36
|
+
"rtc",
|
|
37
|
+
"sdk",
|
|
38
|
+
"react-native-rtm",
|
|
39
|
+
"react",
|
|
40
|
+
"native",
|
|
41
|
+
"helpers",
|
|
42
|
+
"channel",
|
|
43
|
+
"messages",
|
|
44
|
+
"presence"
|
|
45
|
+
]
|
|
30
46
|
}
|