receiveEvent

Receives a message on the given _socket and interprets it as a _socket state change event.

socket must be a PAIR _socket which is connected to an endpoint created via a $(FREF Socket.monitor) call. receiveEvent() receives one message on the _socket, parses its contents according to the specification in the $(ZMQREF zmq_socket_monitor()) reference, and returns the event information as an Event object.

@safe @system
receiveEvent

Throws

ZmqException if $(ZMQ) reports an error.
InvalidEventException if the received message could not be interpreted as an event message.

See Also

$(FREF Socket.monitor), for monitoring _socket state changes.

Meta