aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/connection.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/connection.js')
-rw-r--r--web/src/js/connection.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/web/src/js/connection.js b/web/src/js/connection.js
index a4369b5a..5d464e52 100644
--- a/web/src/js/connection.js
+++ b/web/src/js/connection.js
@@ -19,14 +19,7 @@ _Connection.prototype.onopen = function (open) {
_Connection.prototype.onmessage = function (message) {
//AppDispatcher.dispatchServerAction(...);
var m = JSON.parse(message.data);
- switch (m.type){
- case "flow":
- console.log("flow", m.data);
- break;
- case "event":
- console.log("event", m.data.message)
- break;
- }
+ AppDispatcher.dispatchServerAction(m);
};
_Connection.prototype.onerror = function (error) {
console.log("onerror", this, arguments);