Monitor socket events (cf.
zmq_socket_monitor).
This function returns a function which can be invoked to retrieve the
next socket event, potentially blocking until the next one becomes
available. When applied to
False, monitoring will terminate,
i.e. internal monitoring resources will be disposed. Consequently
after
monitor has been invoked, the returned function must be
applied
once to
False.