rdh-socket-client 1.0.1 → 1.0.3
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 +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,10 +6,11 @@ To install the RDH Socket Client package, run the following command in your comm
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm i rdh-socket-client
|
|
9
|
-
|
|
9
|
+
```
|
|
10
10
|
## USAGE
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
```js
|
|
13
|
+
import rdhClientSocket from 'rdh-socket-client';
|
|
13
14
|
|
|
14
15
|
// Initialize the client with your app ID and app key
|
|
15
16
|
const client = new rdhClientSocket({
|
|
@@ -24,3 +25,7 @@ client.channel('channelName').on('eventName', (data) => {
|
|
|
24
25
|
|
|
25
26
|
// Emit a custom event with data
|
|
26
27
|
client.emit('myEvent', mydata);
|
|
28
|
+
```
|
|
29
|
+
eplace `APP_ID` and `APP_key` with your actual application ID and key. Make sure to customize the channel name, event name, and data according to your application's requirements.
|
|
30
|
+
|
|
31
|
+
Feel free to explore more features and options provided by the RDH Socket Client package documentation for a comprehensive understanding of its capabilities.
|