$context = new ZMQContext();
$socket = $context->getSocket(ZMQ::SOCKET_PUSH, 'pusher');
$socket->connect("tcp://localhost:5555");
$loop = React\EventLoop\Factory::create();
$loop->addPeriodicTimer(1, function() use ($socket){
$socket->send('notices');
});
$loop->run();