React/ZMQ/Ratchet - Websocket server response
I've currently got a web socket server running and working with Ratchet PHP. I'm not at the stage where I want external scripts to communicate with my server. I can successfully push data to it using ZMQ: push.php $json = ['name' => 'Joe Bloggs']; $context = new ZMQContext(); $socket = $context->getSocket(ZMQ::SOCKET_PUSH, 'Push Notification'); $socket->connect("tcp://localhost:5555"); $socket->send(json_encode($json)); Then in my webserver script I can send this to a method ( onNewPush ) to do something with it when the push.php file is run (ran?): ... $push = $context->getSocket(ZMQ::SOCKET