JDare / ClankBundle

A Symfony2 Bundle for use with Ratchet WebSocket Server
MIT License
131 stars 31 forks source link

ZeroMQ implementation #15

Open TNAJanssen opened 10 years ago

TNAJanssen commented 10 years ago

(not the best solution but quick and simple)

public function startZmq($loop)
{
    $context    = new \React\ZMQ\Context($loop);
    $pull       = $context->getSocket(\ZMQ::SOCKET_PULL);
    $pull->bind('tcp://127.0.0.1:5555');
    $pull->on('message', array($this, 'onPushNotification'));
}

https://github.com/JDare/ClankBundle/issues/7