function __construct($socket) { parent::__construct($socket); $context = new \ZMQContext(); $this->zmq = new \ZMQSocket($context, \ZMQ::SOCKET_REQ); $this->zmq->connect($this->socket); }
function __construct($socket, $queue) { $this->queue = $queue; parent::__construct($socket); $this->amq = new \Stomp($this->socket); $this->queueName = '/temp-queue/' . time() . round(microtime(true) * 10000); }