Hi, thank you for your response.Am trying to use the post method to capture some information from the client and the post script is supposed to be connecting to the push-server script to be able to push the result to all connected clients , but it gives the error above.
Not sure what the problem is, because to kill the process i will be killing the php script that is running the server
my post script is given below
header('Access-Control-Allow-Origin: *');
require ("/opt/lampp/htdocs/bin/push-server.php");
$min = $_POST['min'];
$max = $_POST['max'];
$entryData= mt_rand( $min,$max);
$loop = React\EventLoop\Factory::create();
$context = new React\ZMQ\Context($loop);
$socket = $context->getSocket(ZMQ::SOCKET_PUSH, 'my pusher');
$socket->connect("tcp://localhost:5555");
$socket->send(json_encode($entryData));
Thank you