Skip to content

Conversation

@TNAJanssen
Copy link

(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'));
}

#7

(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'));
    }

JDare#7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants