PHP Classes

File: websocket/test/server.php

Recommend this page to a friend!
  Classes of Will Tinsdeall   Boiler Framework   websocket/test/server.php   Download  
File: websocket/test/server.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Boiler Framework
Web application framework that implements MVC
Author: By
Last change:
Date: 9 years ago
Size: 278 bytes
 

Contents

Class file image Download
<?php
$entryData
= array();
$entryData['channel'] = "testChannel";
$entryData['data'] = "HELLO WORLD";

$context = new ZMQContext();
$socket = $context->getSocket(ZMQ::SOCKET_PUSH, 'my pusher');
$socket->connect("tcp://localhost:5555");

$socket->send(json_encode($entryData));