rdh-archipoint/rdh-socket-client

A socket client for RdhSocket

1.0.0 2023-12-14 11:33 UTC

This package is not auto-updated.

Last update: 2024-10-04 14:19:53 UTC


README

RdhSocketClient is a socket client for RdhSocket.

Installation

Use composer to install RdhSocket.

composer require rdh-archipoint/rdh-socket-client

Usage

use RdhArchipoint\RdhSocketClient;

$r_client = new RdhSocketClient([
   'app_id' => 'APP_ID',
   'app_key' => 'APP_KEY',
   'token' => 'APP_TOKEN'
]);

# EMITS EVENT
$r_client->emit('CHANNEL_NAME','EVENT_NAME','DATA');

Replace APP_ID, APP_KEY, APP_TOKEN with your current RdhSocket application configuration.

License

MIT