# rdh-socket-client

> Client Socket for rdh-socket

Latest version **1.2.5** (published 2026-06-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install rdh-socket-client
pnpm add rdh-socket-client
yarn add rdh-socket-client
bun add rdh-socket-client
```

## Health

**Score 50/100 (C)** — status: active.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.2.5 |
| Published | 2026-06-30 |
| First published | 2023-12-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | RAKOTONDRAMANANA David Henintsoa |
| Maintainers | rdh-archipoint |

## Links

- npm: https://www.npmjs.com/package/rdh-socket-client
- npm.io page: https://npm.io/package/rdh-socket-client

## Dependencies (1)

- [socket.io-client](https://npm.io/package/socket.io-client.md) ^4.7.2

## Recent versions

- 1.2.5 (latest) — 2026-06-30
- 1.1.6 — 2026-04-08
- 1.1.5 — 2023-12-10
- 1.1.4 — 2023-12-10
- 1.1.3 — 2023-12-10
- 1.1.2 — 2023-12-10
- 1.1.1 — 2023-12-10
- 1.1.0 — 2023-12-09
- 1.0.3 — 2023-12-09
- 1.0.2 — 2023-12-09
- 1.0.1 — 2023-12-09
- 1.0.0 — 2023-12-09

## README

# RDH Socket Client

## Installation

To install the RDH Socket Client package, run the following command in your command line:

```bash
npm i rdh-socket-client
```
## USAGE

```js
import rdhClientSocket from 'rdh-socket-client';

// Initialize the client with your app ID and app key
const client = new rdhClientSocket({
    app_id: 'APP_ID',
    app_key: 'APP_key'
});

const client_first_channel = client.channel('channelName');

// Subscribe to a channel and listen for an event
client_first_channel.on('eventName', (data) => {
    console.log(data.message);
});

// Emit a custom event with data
client_first_channel.emit('myEvent', mydata);

```
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.

Feel free to explore more features and options provided by the RDH Socket Client package documentation for a comprehensive understanding of its capabilities.

---
_Source: https://npm.io/package/rdh-socket-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
