arifa-client 1.0.3 → 1.0.5
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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ yarn add arifa-client
|
|
|
23
23
|
import { ArifaClient } from "arifa-client";
|
|
24
24
|
|
|
25
25
|
const client = new ArifaClient({
|
|
26
|
-
apiKey: "
|
|
26
|
+
apiKey: "YOUR_API_KEY",
|
|
27
27
|
client: "web", // "web" or "mobile"
|
|
28
28
|
});
|
|
29
29
|
```
|
|
@@ -107,7 +107,7 @@ client.onConnectionChange((state) => {
|
|
|
107
107
|
console.log("Connection state:", state); // "connected" or "disconnected"
|
|
108
108
|
});
|
|
109
109
|
|
|
110
|
-
// Subscribe
|
|
110
|
+
// Subscribe a recipient (UUID required)
|
|
111
111
|
const sub = client.subscribe("RECIPIENT_UUID");
|
|
112
112
|
|
|
113
113
|
// Listen for incoming events
|