When reading the response from the server, script should accept user-defined functions in order to determine, whether specific response should be treated as success, failure, warning, important message or just normal output. This can be simple (such as simple sequence of regexp + message type pairs) or more complex (such as more complex system of callbacks).
When reading the response from the server, script should accept user-defined functions in order to determine, whether specific response should be treated as success, failure, warning, important message or just normal output. This can be simple (such as simple sequence of regexp + message type pairs) or more complex (such as more complex system of callbacks).