PHP code example of rdh-archipoint / rdh-socket-client
1. Go to this page and download the library: Download rdh-archipoint/rdh-socket-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rdh-archipoint / rdh-socket-client example snippets
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');