berryMQ uses JSON-RPC as a communication protocol. berrymq.connect.ExportedFunctions class implements JSON-RPC interface.
Connect to other node equality. This is inter-process style01.
You should generate token at client side and pass to server. Once you call this function, this node will callback to addr.
| Returns: | token | 
|---|---|
| Return type: | str | 
Connect to other node. Target node won’t call back to client. This is inter-process style02.
| Returns: | token | 
|---|---|
| Return type: | str | 
Connect to other node with queue. This is inter-process style03.
| Parameter: | identifier (str) – receive filter. see Identifier | 
|---|---|
| Returns: | token | 
| Return type: | str | 
It’s key function for inter-process communication.
| Parameters: | 
  | 
|---|---|
| Returns: | status code  | 
| Return type: | “ok” or “invalid token” or “timeout”  | 
Get message from queue. This function is available if you connect by connect_via_queue().
See also
| Returns: | message object or error code | 
|---|---|
| Return type: | {id, args, kwargs} or “invalid token” or “timeout” | 
See also
| Returns: | message object or error code | 
|---|---|
| Return type: | {id, args, kwargs} or “invalid token” or “timeout” | 
close session.
| Parameter: | token (str) – return value of connection methods | 
|---|