ZMQContext::__constructConstruct a new ZMQContext object Description
public ZMQContext::__construct(int
$io_threads = 1, bool $is_persistent = true )Constructs a new ZMQ context. The context is used to initialize sockets. A persistent context is required to initialize persistent sockets. Parameters
Errors/ExceptionsThrows ZMQContextException if context initialization fails. Examples
Example #1 A ZMQContext example Construct a new context and allocate request socket from it
|