Socket.monitor

Spawns a PAIR socket that publishes socket state changes (_events) over the INPROC transport to the given _endpoint.

Which event types should be published may be selected by bitwise-ORing together different EventType flags in the events parameter.

Throws

ZmqException if $(ZMQ) reports an error.

Corresponds to

$(ZMQREF zmq_socket_monitor())

Examples

auto sck = Socket(SocketType.pub);
sck.monitor("inproc://zmqd_monitor_unittest",
            EventType.accepted | EventType.closed);

See Also

$(FREF receiveEvent), which receives and parses event messages.

Meta