var rest = require('restler');
...
rest.get(someRequest, {timeout: someTimeout}).on('timeout', function() {
...
// show modal expressing timeout f.e.
...
})
work also in the case when there is no connection to begin with? So, before the request is fired at all? as far as i understand this is not the case at the moment. Is this a responsibility of application logic (i.e. i should detect this myself, before even allowing to fire a request) or is this something nice to incorporate into restler?
should
work also in the case when there is no connection to begin with? So, before the request is fired at all? as far as i understand this is not the case at the moment. Is this a responsibility of application logic (i.e. i should detect this myself, before even allowing to fire a request) or is this something nice to incorporate into restler?