Skip to content

Instantly share code, notes, and snippets.

@intarstudents
Created January 3, 2013 13:09
Show Gist options
  • Save intarstudents/4443355 to your computer and use it in GitHub Desktop.
Save intarstudents/4443355 to your computer and use it in GitHub Desktop.
zmqtest
<?php
$zmqc = new ZMQContext();
$sub = $zmqc->getSocket(ZMQ::SOCKET_SUB);
$sub->connect("tcp://IP:PORT");
$sub->setSockOpt(ZMQ::SOCKOPT_SUBSCRIBE, "");
var_dump($sub->recvMulti());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment