connection.onclose = function (details) {
console.log('will_retry ', details.will_retry);
// fire app code handler
//
if (self.onclose) {
var details = {
reason: self._session_close_reason,
message: self._session_close_message,
retry_delay: next_retry.delay,
retry_count: next_retry.count,
will_retry: next_retry.will_retry
};
try {
// Connection.onclose() allows to cancel any subsequent retry attempt
var stop_retrying = self.onclose(reason, details);
} catch (e) {
log.debug("Exception raised from app code while firing Connection.onclose()", e);
}
}
connection.onclose = function (reason, details) {
console.log(details.will_retry)
console.log("Connection lost: " + reason);
}
console.log('will_retry ', details.will_retry);
did not declare the first argument.
thx,
-g
--
You received this message because you are subscribed to a topic in the Google Groups "Autobahn" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/HLTL9jzXENE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to autobahnws+...@googlegroups.com.
To post to this group, send email to autob...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autobahnws/e260c81a-af6e-458c-833a-abf91939e051%40googlegroups.com.