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: 3 years ago
Size: 168 bytes


Class file image Download

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


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

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