summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-03-23 11:04:30 +0000
committerAndrej Mihajlov <and@codeispoetry.ru>2017-03-23 11:04:30 +0000
commit27fcbbbfc7709e0b54c04d3f782b5bad5826dd81 (patch)
tree4f2618f88c79bcab1db56c0957095e9594c47a6b
parentb235dc89f634b9dbba2074a0498997c36940f72d (diff)
downloadmullvadvpn-27fcbbbfc7709e0b54c04d3f782b5bad5826dd81.tar.xz
mullvadvpn-27fcbbbfc7709e0b54c04d3f782b5bad5826dd81.zip
Document Backend._startReachability
-rw-r--r--app/lib/backend.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js
index 0f75d7515c..02001fa73d 100644
--- a/app/lib/backend.js
+++ b/app/lib/backend.js
@@ -485,6 +485,14 @@ export default class Backend extends EventEmitter {
this.emit(Backend.EventType.updatedIp, ip.join('.'));
}
+ /**
+ * Start reachability monitoring for online/offline detection
+ * This is currently done via HTML5 APIs but will be replaced later
+ * with proper backend integration.
+ * @private
+ * @memberOf Backend
+ * @emits Backend.EventType.updatedReachability
+ */
_startReachability() {
// update online status in background
setTimeout(() => {