Expects hash reference to send to the client. Serialized data structure and sends message via the transport layer.
Reads message from the client, deserializes the input and returns the corresponding data structure.
Sets read timeout (seconds) for the collect() call. If no message is read within the specified timout collect() terminates with an exception. Default is undef which means no timeout (wait forever).
Expects the following named parameters: