PHP Classes

File: examples/client/ipc-client.php

Recommend this page to a friend!
  Classes of Juraj Puchký  >  PHP Node.js Communication IPC Client  >  examples/client/ipc-client.php  >  Download  
File: examples/client/ipc-client.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Node.js Communication IPC Client
Send messages to a Node server via sockets
Author: By
Last change:
Date: 2 years ago
Size: 168 bytes
 

Contents

Class file image Download
<?php

require_once __DIR__ . '/vendor/autoload.php';

use
BABA\NodeIPC\Client;

$ipc = new Client('unix:///tmp/sample.sock');

$ipc->emit('message', 'Hello world!!!');

For more information send a message to info at phpclasses dot org.