receiver – Receiver¶
The receiver is responsible for receiveing messages
-
class
eventmq.receiver.Receiver(*args, **kwargs)¶ Receives messages and pass them to a on_recv.
-
name¶ str – Name of this socket
-
zcontext¶ zmq.Context– socket context
-
zsocket¶
-
__init__(*args, **kwargs)¶ Note
All args are optional unless otherwise noted.
Parameters: - name (str) – name of this socket. By default a uuid will be generated
- context (
zmq.Context) – Context to use when buliding the socket - socket (
zmq.Socket) – Should be one ofzmq.REPorzmq.ROUTER. By default a ROUTER is used
Raises: TypeError– when callable is not callable
-
connect(addr=None)¶ Connect to address defined by addr
Parameters: addr (str) – Address to connect to as a connection string Raises: Exception
-
listen(addr=None)¶ start listening on addr
Parameters: addr (str) – Address to listen on as a connction string Raises: Exception
-