From 674bc4273e9a2f1a2e41ef977a80219423c7cb51 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 16 Sep 2014 00:56:43 +0200 Subject: format javascript --- web/src/js/Connection.es6.js | 4 ---- 1 file changed, 4 deletions(-) (limited to 'web/src/js/Connection.es6.js') 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 -- cgit v1.2.3