aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/Connection.es6.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-09-16 00:56:43 +0200
committerMaximilian Hils <git@maximilianhils.com>2014-09-16 00:56:43 +0200
commit674bc4273e9a2f1a2e41ef977a80219423c7cb51 (patch)
treeb343902da8a0de10f075c46c75f8ad135bc23192 /web/src/js/Connection.es6.js
parentacdd182754625fabcfc2c6ed4bdad8a63bce8ad6 (diff)
downloadmitmproxy-674bc4273e9a2f1a2e41ef977a80219423c7cb51.tar.gz
mitmproxy-674bc4273e9a2f1a2e41ef977a80219423c7cb51.tar.bz2
mitmproxy-674bc4273e9a2f1a2e41ef977a80219423c7cb51.zip
format javascript
Diffstat (limited to 'web/src/js/Connection.es6.js')
-rw-r--r--web/src/js/Connection.es6.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/web/src/js/Connection.es6.js b/web/src/js/Connection.es6.js
index 05d86c93..7250dd39 100644
--- a/web/src/js/Connection.es6.js
+++ b/web/src/js/Connection.es6.js
@@ -5,11 +5,9 @@ class _Connection {
}
this.root = root;
}
-
init() {
this.openWebSocketConnection();
}
-
openWebSocketConnection() {
this.ws = new WebSocket(this.root.replace("http", "ws") + "/ws");
var ws = this.ws;
@@ -19,7 +17,6 @@ class _Connection {
ws.onerror = this.onerror.bind(this);
ws.onclose = this.onclose.bind(this);
}
-
onopen(open) {
console.log("onopen", this, arguments);
}
@@ -33,6 +30,5 @@ class _Connection {
onclose(close) {
console.log("onclose", this, arguments);
}
-
}
var Connection = new _Connection(); \ No newline at end of file